diff options
author | Ken Moore <ken@ixsystems.com> | 2017-06-16 12:43:17 -0400 |
---|---|---|
committer | Ken Moore <ken@ixsystems.com> | 2017-06-16 12:43:17 -0400 |
commit | e1656c7c71581130217bc09d31d242551b3f34c4 (patch) | |
tree | 7a9022bc265d78518f62637db3a776c5d1c93347 | |
parent | Merge branch 'master' of https://github.com/trueos/lumina (diff) | |
download | lumina-e1656c7c71581130217bc09d31d242551b3f34c4.tar.gz lumina-e1656c7c71581130217bc09d31d242551b3f34c4.tar.bz2 lumina-e1656c7c71581130217bc09d31d242551b3f34c4.zip |
Quick update for javascript syntax rules
-rw-r--r-- | src-qt5/desktop-utils/lumina-textedit/syntax_rules/javascript.syntax | 10 |
1 files changed, 5 insertions, 5 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 d2ca28e9..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,14 +30,14 @@ "foreground": "colors/altkeyword" }, { - "name": "function names", - "regex": "\\b[A-Za-z0-9_]+(?=\\()", + "name": "attributes", + "regex": "(\\.)[A-Za-z_][A-Za-z0-9_]*(?![\\(a-zA-Z0-9])", "foreground": "colors/function" }, { - "name": "attributes", - "regex": "(?<=\.)[A-Za-z_][A-Za-z0-9_]*", - "foreground": "colors/function" + "name": "function names", + "regex": "\\b[A-Za-z0-9_]+(?=\\()", + "foreground": "colors/class" }, { "name" : "text", |