Phạm Huy Hoàng
|
722617e672
|
refactor(format): drop extra indentation for field
|
2024-03-21 15:51:26 +01:00 |
|
再生花
|
31641d72a4
|
feat(format-scripts): linewrap predicates
"format-ignore".kick()
|
2024-02-23 10:42:01 +02:00 |
|
Phạm Huy Hoàng
|
d198a75e2c
|
Fixup format (#5934)
* fix(format): newline between top-level field defs
* fixup: newline between node and comment
* fixup: optimize pattern
|
2024-01-20 18:47:56 +09:00 |
|
Pham Huy Hoang
|
57a8acf0c4
|
chore: query formatting
|
2024-01-19 16:58:37 +01:00 |
|
Pham Huy Hoang
|
edee83272e
|
refactor: manual pre-cleanup
Moving comments, adding `format-ignore` to lines that will be better
with it
|
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 |
|
Christian Clason
|
5b90ea2aba
|
feat(locals)!: switch to upstream captures
|
2024-01-19 16:58:37 +01:00 |
|
ShellCode33
|
d9e75a1736
|
queries/*/highlights.scm : remove @spell for strings
|
2023-08-07 16:39:40 +01:00 |
|
Stephan Seitz
|
150be01d47
|
highlights(commonlisp): include all symbols defined by the ANSI standard
Before, those symbols were available via https://github.com/theHamsta/nvim-treesitter-commonlisp.
Since then `#any-of?` has become more efficient via tables and clojure also added all builtin functions
(72cbda75a9/queries/clojure/highlights.scm (L169-L278)).
The list I'm adding is defined by the 1994 ANSI standard that has
not changed since. This is why I don't expect any changes or maintenance burden due to adding that list.
Fixes https://github.com/theHamsta/tree-sitter-commonlisp/issues/18
|
2023-06-13 22:12:45 +02:00 |
|
Amaan Qureshi
|
85330918f0
|
perf: remove match where possible
|
2023-04-21 18:24:17 -04:00 |
|
kawas44
|
c07c1c5b98
|
feat(spell): support lisp like languages
Add spell to commonlisp, scheme, racket, clojure and fennel.
|
2023-03-29 17:48:30 -04:00 |
|
Stephan Seitz
|
c6f09ef051
|
Update queries/commonlisp/highlights.scm
Co-authored-by: Santos Gallegos <stsewd@protonmail.com>
|
2021-05-17 20:45:31 +02:00 |
|
Stephan Seitz
|
355d1e54ab
|
highlights(commonlisp): use any-of?
|
2021-05-17 20:45:31 +02:00 |
|
Stephan Seitz
|
021196fd6c
|
Clojure/Lisp: Add char_lit to highlights
|
2021-05-17 20:45:31 +02:00 |
|
Stephan Seitz
|
007aa7ff21
|
Use @symbol in clojure in commonlisp
|
2021-05-17 20:45:31 +02:00 |
|
Stephan Seitz
|
64f13eace5
|
Extend CL highlights
|
2021-05-17 20:45:31 +02:00 |
|
Stephan Seitz
|
e197736061
|
Add support for Common Lisp
|
2021-05-17 20:45:31 +02:00 |
|