From e1656c7c71581130217bc09d31d242551b3f34c4 Mon Sep 17 00:00:00 2001 From: Ken Moore Date: Fri, 16 Jun 2017 12:43:17 -0400 Subject: Quick update for javascript syntax rules --- .../lumina-textedit/syntax_rules/javascript.syntax | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src-qt5/desktop-utils') 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", -- cgit