feat(ipkg): add parser and queries (#7277)

Co-authored-by: ObserverOfTime <chronobserver@disroot.org>
This commit is contained in:
Serhii Khoma 2024-12-30 23:48:20 +07:00 committed by GitHub
parent a295ba13d2
commit f87c8956ae
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 143 additions and 0 deletions

View 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