diff options
| author | Santos Gallegos <stsewd@protonmail.com> | 2020-07-27 20:00:18 -0500 |
|---|---|---|
| committer | Thomas Vigouroux <39092278+vigoux@users.noreply.github.com> | 2020-07-28 09:54:40 +0200 |
| commit | b8e3a2dc6549671466ab4cccd7d4905c333272f3 (patch) | |
| tree | ed9b09bab79c3643db39165452c2c40e3c3473dd /queries/lua | |
| parent | 6f9e5bf23f651dc1437d9b43220a4f44a122865f (diff) | |
Lua: update some queries
- Basic textobjects
- Highlighting punctuation symbols
Diffstat (limited to 'queries/lua')
| -rw-r--r-- | queries/lua/highlights.scm | 9 | ||||
| -rw-r--r-- | queries/lua/textobjects.scm | 3 |
2 files changed, 12 insertions, 0 deletions
diff --git a/queries/lua/highlights.scm b/queries/lua/highlights.scm index 2585047b..e1ac271a 100644 --- a/queries/lua/highlights.scm +++ b/queries/lua/highlights.scm @@ -59,6 +59,15 @@ "#" ] @operator +;; Brackets +[ + "(" + ")" + "[" + "]" + "{" + "}" +] @punctuation.bracket ;; Constants [ diff --git a/queries/lua/textobjects.scm b/queries/lua/textobjects.scm new file mode 100644 index 00000000..1a304237 --- /dev/null +++ b/queries/lua/textobjects.scm @@ -0,0 +1,3 @@ +(function) @function.outer + +(local_function) @function.outer |
