diff options
| author | Thomas Vigouroux <tomvig38@gmail.com> | 2021-04-22 17:15:34 +0200 |
|---|---|---|
| committer | Stephan Seitz <stephan.lauf@yahoo.de> | 2021-04-22 17:51:43 +0200 |
| commit | f0ab5edab980a142c4affef06af8ee134451568c (patch) | |
| tree | 9f21dbd6f9565731ad3d908efd8ca5e72a9f4a65 | |
| parent | 9cfd3377e31fc28395187657430c60e25c0e23e5 (diff) | |
fix(lua): correctly highlight field names
| -rw-r--r-- | queries/lua/highlights.scm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/queries/lua/highlights.scm b/queries/lua/highlights.scm index d3a778d3..50f14561 100644 --- a/queries/lua/highlights.scm +++ b/queries/lua/highlights.scm @@ -138,7 +138,8 @@ (string) @string (number) @number (label_statement) @label -(field (identifier) @field) +; A bit of a tricky one, this will only match field names +(field . (identifier) @field (_)) (shebang) @comment ;; Error |
