|
29 | 29 |
|
30 | 30 | ;; TODO: Highlight `content'. |
31 | 31 | ((block (identifier) @keyword |
32 | | - [(string_lit (template_literal) @variable)]) |
| 32 | + [(string_lit (quoted_template_start) @noise |
| 33 | + (template_literal) @variable |
| 34 | + (quoted_template_end) @noise)]) |
33 | 35 | (.eq? @keyword "dynamic")) |
34 | 36 |
|
35 | 37 | ;; ((block (identifier) @keyword |
|
39 | 41 | ;; (.eq? @keyword "dynamic")) |
40 | 42 |
|
41 | 43 | ((block (identifier) @keyword |
42 | | - . [(string_lit (template_literal) @function) |
| 44 | + . [(string_lit (quoted_template_start) @noise |
| 45 | + (template_literal) @function |
| 46 | + (quoted_template_end) @noise) |
43 | 47 | (identifier) @function]) |
44 | 48 | (.eq? @keyword "output")) |
45 | 49 |
|
46 | 50 | ((block (identifier) @keyword |
47 | | - [(string_lit (template_literal) @variable.special) |
| 51 | + [(string_lit (quoted_template_start) @noise |
| 52 | + (template_literal) @variable.special |
| 53 | + (quoted_template_end) @noise) |
48 | 54 | (identifier) @variable.special]) |
49 | 55 | (.eq? @keyword "variable")) |
50 | 56 |
|
51 | 57 | ((block (identifier) @keyword |
52 | | - [(string_lit (template_literal) @type) |
| 58 | + [(string_lit (quoted_template_start) @noise |
| 59 | + (template_literal) @type |
| 60 | + (quoted_template_end) @noise) |
53 | 61 | (identifier) @type]) |
54 | 62 | (.eq? @keyword "module")) |
55 | 63 |
|
56 | 64 | ;; resource "aws_launch_template" "default" |
57 | 65 | (block (identifier) |
58 | | - [(string_lit (template_literal) @type) |
| 66 | + [(string_lit (quoted_template_start) @noise |
| 67 | + (template_literal) @type |
| 68 | + (quoted_template_end) @noise) |
59 | 69 | (identifier) @type] |
60 | | - . [(string_lit (template_literal) @function) |
| 70 | + . [(string_lit (quoted_template_start) @noise |
| 71 | + (template_literal) @function |
| 72 | + (quoted_template_end) @noise) |
61 | 73 | (identifier) @function] |
62 | 74 | . (block_start)) |
63 | 75 |
|
|
0 commit comments