diff options
| author | ObserverOfTime <chronobserver@disroot.org> | 2022-09-18 20:48:41 +0300 |
|---|---|---|
| committer | Stephan Seitz <stephan.seitz@fau.de> | 2022-10-15 08:12:55 -0700 |
| commit | c6a81292f7f3b526c736a7afc5565bb02544e3ae (patch) | |
| tree | 04f1e252d8bef7fe83713e13f525b80153dcaed7 /queries/dockerfile | |
| parent | highlights(bash): add all signal names (diff) | |
| download | nvim-treesitter-c6a81292f7f3b526c736a7afc5565bb02544e3ae.tar nvim-treesitter-c6a81292f7f3b526c736a7afc5565bb02544e3ae.tar.gz nvim-treesitter-c6a81292f7f3b526c736a7afc5565bb02544e3ae.tar.bz2 nvim-treesitter-c6a81292f7f3b526c736a7afc5565bb02544e3ae.tar.lz nvim-treesitter-c6a81292f7f3b526c736a7afc5565bb02544e3ae.tar.xz nvim-treesitter-c6a81292f7f3b526c736a7afc5565bb02544e3ae.tar.zst nvim-treesitter-c6a81292f7f3b526c736a7afc5565bb02544e3ae.zip | |
highlights(dockerfile): add several highlights
Diffstat (limited to 'queries/dockerfile')
| -rw-r--r-- | queries/dockerfile/highlights.scm | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/queries/dockerfile/highlights.scm b/queries/dockerfile/highlights.scm index 6ec8d645b..2d1840e66 100644 --- a/queries/dockerfile/highlights.scm +++ b/queries/dockerfile/highlights.scm @@ -47,4 +47,17 @@ ((variable) @constant (#lua-match? @constant "^[A-Z][A-Z_0-9]*$")) +(arg_instruction + . (unquoted_string) @property) +(env_instruction + (env_pair . (unquoted_string) @property)) + +(expose_instruction + (expose_port) @number) + +((stopsignal_instruction) @number + (#match? @number "[0-9][0-9]?$")) + +((stopsignal_instruction) @constant.builtin + (#match? @constant.builtin "SIG(ABRT|HUP|INT|KILL|QUIT|STOP|TERM|TSTP)$")) |
