emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] master b3f74f0 19/31: Fix jsdoc highlighting for tags w/ optional


From: Dmitry Gutov
Subject: [elpa] master b3f74f0 19/31: Fix jsdoc highlighting for tags w/ optional braces
Date: Fri, 21 Jul 2017 09:04:57 -0400 (EDT)

branch: master
commit b3f74f0fa96cd0ab827d58dd12b89d56c8922b10
Author: Stephen Hicks <address@hidden>
Commit: Stephen Hicks <address@hidden>

    Fix jsdoc highlighting for tags w/ optional braces
    
    Some of the tags in js2-jsdoc-arg-tag-regexp (specifically address@hidden, 
address@hidden, and address@hidden) 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

[Prev in Thread] Current Thread [Next in Thread]