aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Vigouroux <tomvig38@gmail.com>2020-07-16 09:30:15 +0200
committerStephan Seitz <stephan.lauf@yahoo.de>2020-07-16 10:49:49 +0200
commit85d2f9ee9390fce82267dccf6814a25748329729 (patch)
tree439f463f01b29da3db1884c88958f96b08a389f7
parentRefactor locals.lua: (diff)
downloadnvim-treesitter-85d2f9ee9390fce82267dccf6814a25748329729.tar
nvim-treesitter-85d2f9ee9390fce82267dccf6814a25748329729.tar.gz
nvim-treesitter-85d2f9ee9390fce82267dccf6814a25748329729.tar.bz2
nvim-treesitter-85d2f9ee9390fce82267dccf6814a25748329729.tar.lz
nvim-treesitter-85d2f9ee9390fce82267dccf6814a25748329729.tar.xz
nvim-treesitter-85d2f9ee9390fce82267dccf6814a25748329729.tar.zst
nvim-treesitter-85d2f9ee9390fce82267dccf6814a25748329729.zip
highlights: some fixes
Add `goto` keyword for C. Fix typo for lua.
-rw-r--r--queries/c/highlights.scm1
-rw-r--r--queries/lua/highlights.scm12
2 files changed, 7 insertions, 6 deletions
diff --git a/queries/c/highlights.scm b/queries/c/highlights.scm
index a9693d66c..2c0616d87 100644
--- a/queries/c/highlights.scm
+++ b/queries/c/highlights.scm
@@ -11,6 +11,7 @@
"typedef"
"union"
"volatile"
+ "goto"
] @keyword
[
diff --git a/queries/lua/highlights.scm b/queries/lua/highlights.scm
index 1ad10480e..2585047b3 100644
--- a/queries/lua/highlights.scm
+++ b/queries/lua/highlights.scm
@@ -3,14 +3,14 @@
;;; Builtins
;; Keywords
(
- [
- "if"
- "then"
+ "if" @conditional
+ "end" @conditional
+)
+[
"else"
"elseif"
- ] @conditional
- "end" @confitional
-)
+ "then"
+] @conditional
(