aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/desktop-utils/lumina-textedit
diff options
context:
space:
mode:
Diffstat (limited to 'src-qt5/desktop-utils/lumina-textedit')
-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