diff options
Diffstat (limited to 'plugins/language_jsx.lua')
-rw-r--r-- | plugins/language_jsx.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/language_jsx.lua b/plugins/language_jsx.lua index 891f160..1cbc4ac 100644 --- a/plugins/language_jsx.lua +++ b/plugins/language_jsx.lua @@ -15,8 +15,9 @@ syntax.add { { pattern = "0x[%da-fA-F]+", type = "number" }, { pattern = "-?%d+[%d%.eE]*", type = "number" }, { pattern = "-?%.?%d+", type = "number" }, - { pattern = "[%+%-=/%*%^%%<>!~|&]", type = "operator" }, + { pattern = "%f[^<]/?[%a_][%w_]*", type = "function" }, { pattern = "[%a_][%w_]*%f[(]", type = "function" }, + { pattern = "[%+%-=/%*%^%%<>!~|&]", type = "operator" }, { pattern = "[%a_][%w_]*", type = "symbol" }, }, symbols = { @@ -37,6 +38,7 @@ syntax.add { ["extends"] = "keyword", ["finally"] = "keyword", ["for"] = "keyword", + ["from"] = "keyword", ["function"] = "keyword", ["get"] = "keyword", ["if"] = "keyword", |