aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/desktop-utils
diff options
context:
space:
mode:
authorKen Moore <ken@ixsystems.com>2017-06-16 12:43:17 -0400
committerKen Moore <ken@ixsystems.com>2017-06-16 12:43:17 -0400
commite1656c7c71581130217bc09d31d242551b3f34c4 (patch)
tree7a9022bc265d78518f62637db3a776c5d1c93347 /src-qt5/desktop-utils
parentMerge branch 'master' of https://github.com/trueos/lumina (diff)
downloadlumina-e1656c7c71581130217bc09d31d242551b3f34c4.tar.gz
lumina-e1656c7c71581130217bc09d31d242551b3f34c4.tar.bz2
lumina-e1656c7c71581130217bc09d31d242551b3f34c4.zip
Quick update for javascript syntax rules
Diffstat (limited to 'src-qt5/desktop-utils')
-rw-r--r--src-qt5/desktop-utils/lumina-textedit/syntax_rules/javascript.syntax10
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",
bgstack15