Unnamed repository; edit this file 'description' to name the repository.
Add rainbows for Lua (#14256)
| -rw-r--r-- | book/src/generated/lang-support.md | 2 | ||||
| -rw-r--r-- | runtime/queries/lua/rainbows.scm | 9 |
2 files changed, 10 insertions, 1 deletions
diff --git a/book/src/generated/lang-support.md b/book/src/generated/lang-support.md index c6c77af7..f963c25e 100644 --- a/book/src/generated/lang-support.md +++ b/book/src/generated/lang-support.md @@ -149,7 +149,7 @@ | llvm-mir-yaml | ✓ | | ✓ | | | | | log | ✓ | | | | | | | lpf | ✓ | | | | | | -| lua | ✓ | ✓ | ✓ | | | `lua-language-server` | +| lua | ✓ | ✓ | ✓ | | ✓ | `lua-language-server` | | luap | ✓ | | | | | | | luau | ✓ | ✓ | ✓ | | | `luau-lsp` | | mail | ✓ | ✓ | | | | | diff --git a/runtime/queries/lua/rainbows.scm b/runtime/queries/lua/rainbows.scm new file mode 100644 index 00000000..3c97fc72 --- /dev/null +++ b/runtime/queries/lua/rainbows.scm @@ -0,0 +1,9 @@ +[ + (table_constructor) + (bracket_index_expression) + (parameters) + (arguments) + (field) +] @rainbow.scope + +["(" ")" "[" "]" "{" "}"] @rainbow.bracket |