Kai Moschcau
|
ead283734b
|
feat(latex, query, tablegen, thrift): disable spelling in shebangs
|
2024-05-01 15:01:48 +02:00 |
|
Phạm Huy Hoàng
|
722617e672
|
refactor(format): drop extra indentation for field
|
2024-03-21 15:51:26 +01:00 |
|
Pham Huy Hoang
|
57a8acf0c4
|
chore: query formatting
|
2024-01-19 16:58:37 +01:00 |
|
Pham Huy Hoang
|
15de22a2e1
|
feat: query formatting script
Usage:
- nvim -l scripts/format-queries.lua /path/to/file.scm
- nvim -l scripts/format-queries.lua /path/to/dir
fixup: add `format-ignore` directive to query/highlights.scm
|
2024-01-19 16:58:37 +01:00 |
|
Christian Clason
|
1ae9b0e455
|
feat!: align standard captures with upstream
Problem: Sharing highlight queries with upstream tree-sitter and
Helix is difficult.
Solution: Where reasonable, use capture names in tree-sitter's standard
list or Helix's Atom-style hierarchy.
Specifically:
* tree-sitter "standard capture names"
(3f44b89685/highlight/src/lib.rs (L20-L72)):
- `@parameter` -> `@variable.parameter`
- `@field` -> `@variable.member`
- `@namespace` -> `@module`
- `@float` -> `@number.float`
- `@symbol` -> `@string.special.symbol`
- `@string.regex` -> `@string.regexp`
- `@text.*` -> `@markup.*` (`strong`, `italic`, `link`, `strikethrough`; with exceptions; see below)
- `@text.title` -> `@markup.heading`
- `@text.literal` -> `@markup.raw`
- `@text.reference` -> `@markup.link`
- `@text.uri` -> `@markup.link.url` (in markup links)
- `@string.special` -> `@markup.link.label` (non-url links)
- `@punctuation.special` -> `@markup.list` (markdown lists only; move subitems from `@text.todo`)
* Helix captures
(https://docs.helix-editor.com/master/themes.html#syntax-highlighting):
- `@method` -> `@function.method`
- `@method.call` -> `@function.method.call`
- `@text.{todo,warning,note,danger}` -> `@comment.{error,warning,hint,info,todo}`
- `@text.diff.{add,delete,}` -> `@diff.{plus,minus,delta}`
- `@text.uri` -> `@string.special.url` (outside markup)
- `@preproc` -> `@keyword.directive`
- `@define` -> `@keyword.directive`(`.define`?)
- `@storageclass` -> `@keyword.storage`
- `@conditional` -> `@keyword.conditional`
- `@debug` -> `@keyword.debug`
- `@exception` -> `@keyword.exception`
- `@include` -> `@keyword.import`
- `@repeat` -> `@keyword.repeat`
* cleanup
- remove some redundant `@conceal` (but still allow it for conceal-only patterns)
- remove obsolete `@error` (syntax linting is out of scope for this repo)
- sort, cleanup capture list in `CONTRIBUTING.md`
|
2024-01-19 16:58:37 +01:00 |
|
Riley Bruins
|
92572c0dfd
|
feat: more @string.regex highlights
|
2023-12-23 22:26:02 +01:00 |
|
Azad
|
198015cca1
|
fix(query): stricter match for extends directive (#5604)
|
2023-11-02 19:02:41 +09:00 |
|
Jaehwang Jung
|
812c2dd8fe
|
feat(query): use @function.call for predicate
|
2023-10-03 17:54:10 +02:00 |
|
Christian Clason
|
741260618d
|
highlights(query): prefer lua-match
|
2023-05-21 19:22:05 +02:00 |
|
Emilia Simmons
|
58da7fe93e
|
allow no spaces for extend/inherit comments
|
2023-05-18 20:01:00 -04:00 |
|
Emilia Simmons
|
0058058386
|
add multiple ; for highlighting
|
2023-05-18 20:01:00 -04:00 |
|
Emilia Simmons
|
865483f8d1
|
fix(query): allow multiline modeline (inherits/extends)
|
2023-05-18 20:01:00 -04:00 |
|
ObserverOfTime
|
9b43ab819c
|
highlights: use @preproc where appropriate
|
2022-10-15 08:49:01 -07:00 |
|
Lewis Russell
|
37398c7d68
|
feat(spell): support more languages
|
2022-09-26 13:47:12 +01:00 |
|
Santos Gallegos
|
b99f46c735
|
Query: update highlights
ref https://github.com/nvim-treesitter/tree-sitter-query/pull/17
|
2021-12-24 03:46:53 +01:00 |
|
Santos Gallegos
|
ef85abba7f
|
Query: highlight numbers
|
2021-08-14 01:32:11 +02:00 |
|
Santos Gallegos
|
2a0097828d
|
Query: update highlight queries (#1553)
This is to match https://github.com/nvim-treesitter/tree-sitter-query/pull/15
|
2021-07-13 14:09:12 +00:00 |
|
Gregory Anders
|
dbbedfec88
|
query: Only highlight predicate name (#1461)
Only highlight the name of the predicate using TSFunction rather than
the entire predicate block.
|
2021-07-01 20:43:09 +00:00 |
|
Santos Gallegos
|
2a946ddc7e
|
Query: update highlights (#1175)
|
2021-04-10 15:18:44 -05:00 |
|
Stephan Seitz
|
cb14ffa103
|
highlights(query): Add modeline query after bugfix
|
2021-03-16 18:52:43 +01:00 |
|
Stephan Seitz
|
a2f524887c
|
Remove some broken queries
|
2021-03-16 18:52:43 +01:00 |
|
Santos Gallegos
|
2ad1f76b7d
|
Query: highlight modeline
Matches the first comment and the beginning from the pattern
52397aaa0d/runtime/lua/vim/treesitter/query.lua (L25)
|
2021-02-12 08:02:00 +01:00 |
|
Santos Gallegos
|
3dbbc2dc7d
|
Query: add string.escape
Needs https://github.com/nvim-treesitter/tree-sitter-query/pull/5
|
2021-01-04 09:29:10 -05:00 |
|
Santos Gallegos
|
fa5aa080dc
|
Query: update highlights
More color!
|
2020-09-04 21:21:48 +02:00 |
|
Steven Sojka
|
bd1d1adb35
|
rename query parser to query from scheme
|
2020-07-28 18:30:24 +02:00 |
|