From 6f0560e29138b9b6b4444ec03614533200fff296 Mon Sep 17 00:00:00 2001 From: ZackaryWelch Date: Fri, 16 Jun 2017 09:54:54 -0400 Subject: Updated syntax files --- .../desktop-utils/lumina-textedit/syntax_rules/javascript.syntax | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src-qt5/desktop-utils/lumina-textedit/syntax_rules/javascript.syntax') 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" }, { -- cgit 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/lumina-textedit/syntax_rules/javascript.syntax') 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