Commit Graph

15352 Commits (1341ec68e53ac15a9d6ac079f2275c2ca5bbf8f9)
 

Author SHA1 Message Date
Wilfred Hughes d292546df7 Prefer 'device tree' as two words 2024-05-13 16:59:48 +07:00
Wilfred Hughes de9c84c418 Document new addition 2024-05-13 16:52:33 +07:00
Wilfred Hughes d3e5aa5232 Merge remote-tracking branch 'blmaier/support-devicetree' 2024-05-13 16:50:13 +07:00
Wilfred Hughes 11e2c49b7e Fix wording 2024-05-13 16:32:45 +07:00
Wilfred Hughes 5a250d63df Expand usage docs and fix obsolete reference to --language
Fixes #712
2024-05-13 16:31:30 +07:00
Nikolaj Sidorenco b5dbafd164
fix: multi line triple quoted strings 2024-05-13 23:35:55 +07:00
Wilfred Hughes 809f49124c Remove empty comment 2024-05-11 22:10:17 +07:00
Wilfred Hughes 28d8673371 Treat tree-sitter nodes highlighted as comments as atoms
Fixes #711
2024-05-11 22:03:59 +07:00
Wilfred Hughes e51834fa77 Support comment.foo highlighting queries
This should improve highlighting in cases like Elm that use
`@comment.elm`.
2024-05-11 16:08:29 +07:00
Wilfred Hughes 835c5eb757 Roll version following release 2024-05-11 13:54:42 +07:00
Wilfred Hughes 0c9277108b It's not actually a 2x perf win
It's more like a 15% reduction in instruction count, which is still
nice.
2024-05-10 16:28:16 +07:00
Wilfred Hughes edb839c803 Improve terminal width detection
Ensure the value is always non-zero, and consider $COLUMNS if
crossterm does not succeed.

Fixes #707
2024-05-10 16:26:48 +07:00
Wilfred Hughes 9d2574dbd1 Update assert_cmd dependency 2024-05-10 16:08:56 +07:00
Wilfred Hughes be95b31896 Tests do actually import predicates, so restore dependency with looser bounds 2024-05-10 16:02:21 +07:00
Wilfred Hughes f665c73fe0 Remove pin in dev dependencies that is no longer necessary 2024-05-10 15:57:14 +07:00
Wilfred Hughes 6a3b340d5f Prefer 'terminal' over 'display' terminology 2024-05-10 15:53:40 +07:00
Wilfred Hughes ec7a765453 Factor out a constant for the default terminal width 2024-05-10 15:50:56 +07:00
Nikolaj Sidorenco 7769a19509
feat: shorthand array type postfix 2024-05-07 22:57:54 +07:00
Wilfred Hughes 1954f15e0d Fix typo 2024-05-07 08:50:54 +07:00
Grégoire Paris 082abf65d1 Document how to disable difftastic temporarily
It can be useful if you want to obtain a diff in the standard format and
copy paste it to github, for instance.
2024-05-07 08:48:20 +07:00
Wilfred Hughes 0ceb00093a Move notes to wiki 2024-05-07 08:42:45 +07:00
Wilfred Hughes 03d1f9bf26 Lint against .to_string() on String 2024-05-07 08:39:07 +07:00
Wilfred Hughes 9474635076 Prefer .to_owned() on &str 2024-05-07 08:32:30 +07:00
Wilfred Hughes 33542a47d5 Update CMake highlights for latest grammar 2024-05-07 08:29:34 +07:00
Nikolaj Sidorenco 5c85c505b5
fix: repeated attributes 2024-05-06 20:36:57 +07:00
Nikolaj Sidorenco c4d2c743e7
fix: ce expression vs application expression nested 2024-05-06 20:08:20 +07:00
dependabot[bot] 15c58119a9
build(deps-dev): bump eslint from 9.1.1 to 9.2.0 (#53) 2024-05-06 17:34:24 +07:00
dependabot[bot] 15c81bd1ba
build(deps): bump node-gyp-build from 4.8.0 to 4.8.1 (#52) 2024-05-06 17:32:52 +07:00
dependabot[bot] 6a7042c0e6
build(deps-dev): bump tree-sitter-cli from 0.22.5 to 0.22.6 (#51) 2024-05-06 17:32:22 +07:00
Nikolaj Sidorenco ccd13da847
fix: ce expression vs application expression 2024-05-05 16:11:37 +07:00
Nikolaj Sidorenco 830d01faa1
fix type decl scoping 2024-05-05 16:06:50 +07:00
Nikolaj Sidorenco c5fff9dc9d
clean up parser states for types 2024-05-04 15:04:50 +07:00
Nikolaj Sidorenco 6c7f980d42
feat: allow top-level expressions 2024-05-03 16:18:37 +07:00
Nikolaj Sidorenco 36eeeb4689
fix: prefix expression associativity 2024-05-02 23:05:15 +07:00
Nikolaj Sidorenco 1d8481b1f6
fix: for-loop vs do expression 2024-05-02 22:54:26 +07:00
Nikolaj Sidorenco 2af47eda2f
add queries 2024-05-01 19:36:28 +07:00
Nikolaj Sidorenco 05569e7e32
feat: improve error recovery
Allow the external scanner to always insert `indent` token, if the
grammar allows it.
If the external scanner every hits error recovery mode we start popping
`dedent` tokens off the stack. This create a expression block with no
expression inside allowing the grammar to more gracefully recover.
2024-05-01 17:05:20 +07:00
Nikolaj Sidorenco d819d6c35c
simplify scanner 2024-05-01 17:05:18 +07:00
dependabot[bot] 632077a079
build(deps-dev): bump eslint from 9.0.0 to 9.1.1 (#50) 2024-05-01 06:29:30 +07:00
dependabot[bot] 3c70aae132
Bump prebuildify from 6.0.0 to 6.0.1 (#49) 2024-05-01 06:26:46 +07:00
Nikolaj Sidorenco 53c2106398
improve error recovery 2024-04-30 19:58:43 +07:00
Nikolaj Sidorenco ed675061da
fix: while expression in seq expression 2024-04-29 22:58:14 +07:00
Nikolaj Sidorenco 8eac7b270e
add node field names 2024-04-29 19:25:22 +07:00
Nikolaj Sidorenco 8f7bf1aea3
simplify newline tokens 2024-04-29 19:08:16 +07:00
Nikolaj Sidorenco 1134e9f903
feat: anon record expressions 2024-04-29 17:39:57 +07:00
Nikolaj Sidorenco 4e2393286e
feat: add xml doc content node 2024-04-29 16:32:07 +07:00
Nikolaj Sidorenco 92cf19c347
fix: handle comments inside brackets 2024-04-29 16:15:41 +07:00
Wilfred Hughes e23b9fc224 Update CMake parser 2024-04-28 23:53:12 +07:00
Wilfred Hughes 9207220a02 Merge commit '20ffd6d3b4da1acdbf2d08204b2130a5b2f7c4b3' 2024-04-28 23:51:13 +07:00
Wilfred Hughes ecaee577b2 Update Elm parser 2024-04-28 23:50:29 +07:00