diff options
author | jgmdev <jgmdev@gmail.com> | 2022-02-10 03:05:51 -0400 |
---|---|---|
committer | jgmdev <jgmdev@gmail.com> | 2022-02-10 03:05:51 -0400 |
commit | 1907d9debb59159cbc49fe366fa9355b3f7399aa (patch) | |
tree | adaea0557339774821aec9fe022df2a416e47238 /plugins/language_cpp.lua | |
parent | bc9b85676f5bfd1181455b8dc44d8bc047b6af33 (diff) | |
download | lite-xl-plugins-1907d9debb59159cbc49fe366fa9355b3f7399aa.tar.gz lite-xl-plugins-1907d9debb59159cbc49fe366fa9355b3f7399aa.zip |
language_cpp: make #include <> and #include "" uniform.
Diffstat (limited to 'plugins/language_cpp.lua')
-rw-r--r-- | plugins/language_cpp.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/language_cpp.lua b/plugins/language_cpp.lua index a2684e0..92af01a 100644 --- a/plugins/language_cpp.lua +++ b/plugins/language_cpp.lua @@ -18,6 +18,10 @@ syntax.add { { pattern = "-?0x%x+", type = "number" }, { pattern = "-?%d+[%d%.eE]*f?", type = "number" }, { pattern = "-?%.?%d+f?", type = "number" }, + { + pattern = "#include%s*()<.->", + type = { "keyword", "string" } + }, { pattern = "[%+%-=/%*%^%%<>!~|&]", type = "operator" }, { pattern = "[%a_][%w_]*%f[(]", type = "function" }, -- Match scope operator element access |