spadgos / sublime-jsdocs

Simplifies writing DocBlock comments in Javascript, PHP, CoffeeScript, Actionscript, C & C++

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

jsdocs_notation_map doesn't work for fields

xiongxoy opened this issue · comments

I have the following configuration

  "jsdocs_notation_map": [
      {
          "regex": "_$",
          "tags": ["@private"]
      },
      {
          "prefix": "$",
          "type": "Element"
      }
  ]

It works fine for functions, but it doesn't work for fields.

It produces the following doc

  /**
   * [$text_ description]
   * @type {[type]}
   */
  this.$text_ = null;

while I expect this

  /**
   * [$text_ description]
   * @type {Element}
   * @private
   */
  this.$text_ = null;

Thank!

Same problem, waiting for solutions.