diff options
author | q5sys <jt@obs-sec.com> | 2017-06-16 12:44:45 -0400 |
---|---|---|
committer | q5sys <jt@obs-sec.com> | 2017-06-16 12:44:45 -0400 |
commit | 74afc0d985b8b054de0850c84cb09e6e9fbe482d (patch) | |
tree | c54e845d495b973cd569274cb243398f42d6f735 /src-qt5/desktop-utils/lumina-textedit/syntax_rules/javascript.syntax | |
parent | fix file manage autoextract menu method (diff) | |
parent | Quick update for javascript syntax rules (diff) | |
download | lumina-74afc0d985b8b054de0850c84cb09e6e9fbe482d.tar.gz lumina-74afc0d985b8b054de0850c84cb09e6e9fbe482d.tar.bz2 lumina-74afc0d985b8b054de0850c84cb09e6e9fbe482d.zip |
Merge branch 'master' of http://github.com/trueos/lumina
Diffstat (limited to 'src-qt5/desktop-utils/lumina-textedit/syntax_rules/javascript.syntax')
-rw-r--r-- | src-qt5/desktop-utils/lumina-textedit/syntax_rules/javascript.syntax | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src-qt5/desktop-utils/lumina-textedit/syntax_rules/javascript.syntax b/src-qt5/desktop-utils/lumina-textedit/syntax_rules/javascript.syntax index a10045d7..b9543221 100644 --- a/src-qt5/desktop-utils/lumina-textedit/syntax_rules/javascript.syntax +++ b/src-qt5/desktop-utils/lumina-textedit/syntax_rules/javascript.syntax @@ -30,11 +30,16 @@ "foreground": "colors/altkeyword" }, { - "name": "function names", - "regex": "\\b[A-Za-z0-9_]+(?=\\()|(?:\\.)[a-z]+", + "name": "attributes", + "regex": "(\\.)[A-Za-z_][A-Za-z0-9_]*(?![\\(a-zA-Z0-9])", "foreground": "colors/function" }, { + "name": "function names", + "regex": "\\b[A-Za-z0-9_]+(?=\\()", + "foreground": "colors/class" + }, + { "name" : "text", "regex": "\"[^\"\\\\]*(\\\\(.|\\n)[^\"\\\\]*)*\"|'[^'\\\\]*(\\\\(.|\\n)[^'\\\\]*)*'", "foreground" : "colors/text" |