aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/desktop-utils/lumina-textedit/syntax_rules/javascript.syntax
diff options
context:
space:
mode:
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.syntax7
1 files changed, 6 insertions, 1 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..d2ca28e9 100644
--- a/src-qt5/desktop-utils/lumina-textedit/syntax_rules/javascript.syntax
+++ b/src-qt5/desktop-utils/lumina-textedit/syntax_rules/javascript.syntax
@@ -31,7 +31,12 @@
},
{
"name": "function names",
- "regex": "\\b[A-Za-z0-9_]+(?=\\()|(?:\\.)[a-z]+",
+ "regex": "\\b[A-Za-z0-9_]+(?=\\()",
+ "foreground": "colors/function"
+ },
+ {
+ "name": "attributes",
+ "regex": "(?<=\.)[A-Za-z_][A-Za-z0-9_]*",
"foreground": "colors/function"
},
{
bgstack15