diff options
| author | Christian Clason <c.clason@uni-graz.at> | 2023-06-12 09:54:30 -0600 |
|---|---|---|
| committer | Christian Clason <c.clason@uni-graz.at> | 2025-05-12 18:43:40 +0200 |
| commit | 692b051b09935653befdb8f7ba8afdb640adf17b (patch) | |
| tree | 167162b6b129ae04f68c5735078521a72917c742 /queries/pug | |
| parent | feat(c-family): inherit injections (diff) | |
| download | nvim-treesitter-692b051b09935653befdb8f7ba8afdb640adf17b.tar nvim-treesitter-692b051b09935653befdb8f7ba8afdb640adf17b.tar.gz nvim-treesitter-692b051b09935653befdb8f7ba8afdb640adf17b.tar.bz2 nvim-treesitter-692b051b09935653befdb8f7ba8afdb640adf17b.tar.lz nvim-treesitter-692b051b09935653befdb8f7ba8afdb640adf17b.tar.xz nvim-treesitter-692b051b09935653befdb8f7ba8afdb640adf17b.tar.zst nvim-treesitter-692b051b09935653befdb8f7ba8afdb640adf17b.zip | |
feat!: drop modules, general refactor and cleanup
Diffstat (limited to 'queries/pug')
| -rw-r--r-- | queries/pug/highlights.scm | 116 | ||||
| -rw-r--r-- | queries/pug/injections.scm | 11 |
2 files changed, 0 insertions, 127 deletions
diff --git a/queries/pug/highlights.scm b/queries/pug/highlights.scm deleted file mode 100644 index e32cb21e1..000000000 --- a/queries/pug/highlights.scm +++ /dev/null @@ -1,116 +0,0 @@ -(comment) @comment @spell - -(tag_name) @tag - -((tag_name) @constant.builtin - ; https://www.script-example.com/html-tag-liste - (#any-of? @constant.builtin - "head" "title" "base" "link" "meta" "style" "body" "article" "section" "nav" "aside" "h1" "h2" - "h3" "h4" "h5" "h6" "hgroup" "header" "footer" "address" "p" "hr" "pre" "blockquote" "ol" "ul" - "menu" "li" "dl" "dt" "dd" "figure" "figcaption" "main" "div" "a" "em" "strong" "small" "s" - "cite" "q" "dfn" "abbr" "ruby" "rt" "rp" "data" "time" "code" "var" "samp" "kbd" "sub" "sup" "i" - "b" "u" "mark" "bdi" "bdo" "span" "br" "wbr" "ins" "del" "picture" "source" "img" "iframe" - "embed" "object" "param" "video" "audio" "track" "map" "area" "table" "caption" "colgroup" "col" - "tbody" "thead" "tfoot" "tr" "td" "th " "form" "label" "input" "button" "select" "datalist" - "optgroup" "option" "textarea" "output" "progress" "meter" "fieldset" "legend" "details" - "summary" "dialog" "script" "noscript" "template" "slot" "canvas")) - -(id) @constant - -(class) @type - -(doctype) @keyword.directive - -(content) @none - -(tag - (attributes - (attribute - (attribute_name) @tag.attribute - "=" @operator))) - -((tag - (attributes - (attribute - (attribute_name) @keyword))) - (#match? @keyword "^(:|v-bind|v-|\\@)")) - -(quoted_attribute_value) @string - -(include - (keyword) @keyword.import) - -(extends - (keyword) @keyword.import) - -(filename) @string.special.path - -(block_definition - (keyword) @keyword) - -(block_append - (keyword)+ @keyword) - -(block_prepend - (keyword)+ @keyword) - -(block_name) @module - -(conditional - (keyword) @keyword.conditional) - -(case - (keyword) @keyword.conditional - (when - (keyword) @keyword.conditional)+) - -(each - (keyword) @keyword.repeat) - -(while - (keyword) @keyword.repeat) - -(mixin_use - "+" @punctuation.delimiter - (mixin_name) @function.call) - -(mixin_definition - (keyword) @keyword.function - (mixin_name) @function) - -(mixin_attributes - (attribute_name) @variable.parameter) - -(filter - ":" @punctuation.delimiter - (filter_name) @function.method.call) - -(filter - (attributes - (attribute - (attribute_name) @variable.parameter))) - -[ - "(" - ")" - "#{" - "}" - ; unsupported - ; "!{" - ; "#[" "]" -] @punctuation.bracket - -[ - "," - "." - "|" -] @punctuation.delimiter - -(buffered_code - "=" @punctuation.delimiter) - -(unbuffered_code - "-" @punctuation.delimiter) - -(unescaped_buffered_code - "!=" @punctuation.delimiter) diff --git a/queries/pug/injections.scm b/queries/pug/injections.scm deleted file mode 100644 index 0c01e47eb..000000000 --- a/queries/pug/injections.scm +++ /dev/null @@ -1,11 +0,0 @@ -((comment) @injection.content - (#set! injection.language "comment")) - -((javascript) @injection.content - (#set! injection.language "javascript")) - -((attribute_name) @_attribute_name - (quoted_attribute_value - (attribute_value) @injection.content - (#set! injection.language "javascript")) - (#match? @_attribute_name "^(:|v-bind|v-|\\@)")) |
