mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-18 03:10:04 -04:00
feat(ipkg): add parser and queries (#7277)
Co-authored-by: ObserverOfTime <chronobserver@disroot.org>
This commit is contained in:
parent
a295ba13d2
commit
f87c8956ae
8 changed files with 143 additions and 0 deletions
56
queries/ipkg/highlights.scm
Normal file
56
queries/ipkg/highlights.scm
Normal file
|
|
@ -0,0 +1,56 @@
|
|||
; Keywords
|
||||
"package" @keyword.import
|
||||
|
||||
[
|
||||
"authors"
|
||||
"maintainers"
|
||||
"license"
|
||||
"brief"
|
||||
"readme"
|
||||
"homepage"
|
||||
"sourceloc"
|
||||
"bugtracker"
|
||||
"opts"
|
||||
"sourcedir"
|
||||
"builddir"
|
||||
"outputdir"
|
||||
"prebuild"
|
||||
"postbuild"
|
||||
"preinstall"
|
||||
"postinstall"
|
||||
"preclean"
|
||||
"postclean"
|
||||
"version"
|
||||
"langversion"
|
||||
"modules"
|
||||
"main"
|
||||
"executable"
|
||||
"depends"
|
||||
] @keyword
|
||||
|
||||
[
|
||||
"="
|
||||
(version_range_op)
|
||||
] @operator
|
||||
|
||||
"," @punctuation.delimiter
|
||||
|
||||
; Field values
|
||||
(string_value) @string
|
||||
|
||||
(boolean_value) @boolean
|
||||
|
||||
; Version numbers and ranges
|
||||
(version_number) @string.special
|
||||
|
||||
[
|
||||
(dependency_item)
|
||||
(package_name)
|
||||
(module_name)
|
||||
] @module
|
||||
|
||||
; Comments
|
||||
[
|
||||
(line_comment)
|
||||
(block_comment)
|
||||
] @comment @spell
|
||||
Loading…
Add table
Add a link
Reference in a new issue