diff options
| author | Stephan Seitz <stephan.seitz@fau.de> | 2020-06-26 17:12:10 +0200 |
|---|---|---|
| committer | Thomas Vigouroux <39092278+vigoux@users.noreply.github.com> | 2020-06-26 19:37:12 +0200 |
| commit | 2d224ac3bfd0f3ac4afd458a7f2fb55955ebc38c (patch) | |
| tree | 2af602636938bf02b890c59f4876c3251689f6d8 /queries/cpp | |
| parent | Python highlights: Reset highlighting in f-string interpolation (diff) | |
| download | nvim-treesitter-2d224ac3bfd0f3ac4afd458a7f2fb55955ebc38c.tar nvim-treesitter-2d224ac3bfd0f3ac4afd458a7f2fb55955ebc38c.tar.gz nvim-treesitter-2d224ac3bfd0f3ac4afd458a7f2fb55955ebc38c.tar.bz2 nvim-treesitter-2d224ac3bfd0f3ac4afd458a7f2fb55955ebc38c.tar.lz nvim-treesitter-2d224ac3bfd0f3ac4afd458a7f2fb55955ebc38c.tar.xz nvim-treesitter-2d224ac3bfd0f3ac4afd458a7f2fb55955ebc38c.tar.zst nvim-treesitter-2d224ac3bfd0f3ac4afd458a7f2fb55955ebc38c.zip | |
Fix cpp-highlights: wrong capture name used in regex
Diffstat (limited to 'queries/cpp')
| -rw-r--r-- | queries/cpp/highlights.scm | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/queries/cpp/highlights.scm b/queries/cpp/highlights.scm index 92909f4d9..0d8295a1d 100644 --- a/queries/cpp/highlights.scm +++ b/queries/cpp/highlights.scm @@ -52,7 +52,7 @@ ((call_expression function: (field_expression field: (field_identifier) @constructor)) -(#match? @function "^[A-Z]")) +(#match? @constructor "^[A-Z]")) ;; constructing a type in a intizializer list: Constructor (): **SuperType (1)** ((field_initializer @@ -64,8 +64,7 @@ ; Constants -;(this) @constant.builtin -(this) @keyword +(this) @constant.builtin (nullptr) @constant (true) @boolean |
