branch: master
commit b3f74f0fa96cd0ab827d58dd12b89d56c8922b10
Author: Stephen Hicks <s...@google.com>
Commit: Stephen Hicks <s...@google.com>

    Fix jsdoc highlighting for tags w/ optional braces
    
    Some of the tags in js2-jsdoc-arg-tag-regexp (specifically `@this`, 
`@throws`, and `@type`) are used with braces by Closure Compiler. Previously 
the close-brace was styled differently from the open-brace.  Adding a branch to 
the regex for optional braces fixes this.
---
 js2-mode.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/js2-mode.el b/js2-mode.el
index 15be4b3..bf251c3 100644
--- a/js2-mode.el
+++ b/js2-mode.el
@@ -6943,7 +6943,7 @@ of a simple name.  Called before EXPR has a parent node."
              "throws"
              "type"
              "version"))
-          "\\)\\)\\s-+\\([^ \t]+\\)")
+          "\\)\\)\\s-+\\([^ \t\n]+\\)")
   "Matches jsdoc tags with a single argument.")
 
 (defconst js2-jsdoc-empty-tag-regexp

Reply via email to