Commit Graph

136 Commits (5a09e9b3f7a388a07eb988a070fbbc5d8f5c3077)

Author SHA1 Message Date
cherryblossom defc084637
Add Elvish support
Add support for [Elvish](https://elv.sh).
2022-05-07 20:12:43 +07:00
Wilfred Hughes 4db120449d Treat more Perl pattern literals as atoms 2022-04-29 18:37:02 +07:00
Wilfred Hughes 03c5d78650 Treat perl regexes as atoms too 2022-04-29 18:28:01 +07:00
Wilfred Hughes 3bb5933163 Ensure Perl comments are treated as atoms with an atom kind of comment 2022-04-29 18:23:31 +07:00
Wilfred Hughes 72eba2d426 Added Swift support
Closes #225
2022-04-28 09:29:58 +07:00
cherryblossom b87d6c99f7
Add Swift support 2022-04-26 17:08:23 +07:00
Wilfred Hughes b2320b29d5
Merge pull request #264 from Xuanwo/hcl
feat: Add HCL support
2022-04-24 08:48:34 +07:00
Xuanwo d4c3d114dc
fix: Add atoms for hcl
Signed-off-by: Xuanwo <github@xuanwo.io>
2022-04-24 15:57:51 +07:00
Wilfred Hughes bfcd4cc88a Add docs and syntax highlighting for Perl 2022-04-23 10:44:52 +07:00
Xuanwo 5a7ca84455
feat: Add highlights support for hcl
Signed-off-by: Xuanwo <github@xuanwo.io>
2022-04-23 01:55:44 +07:00
Xuanwo 4b3213acdc
feat: Add HCL support
Signed-off-by: Xuanwo <github@xuanwo.io>
2022-04-23 01:10:08 +07:00
Xuanwo 9dd5542031
fix: Perl atom should be quoted
Signed-off-by: Xuanwo <github@xuanwo.io>
2022-04-22 18:42:50 +07:00
Xuanwo b85f996ff0
feat: Add perl support
Signed-off-by: Xuanwo <github@xuanwo.io>
2022-04-22 10:14:19 +07:00
Wilfred Hughes a91a3e5db0 Handle namespaced highlighting queries 2022-04-18 09:35:09 +07:00
Wilfred Hughes 83e56bdf27 Tweak logging levels to make node counts more prominent 2022-04-17 19:30:58 +07:00
Wilfred Hughes 480b9c05f9 Prefer `Janet` for the language name 2022-04-14 21:50:55 +07:00
Wilfred Hughes 9dce9e8618 Consistent language ordering 2022-04-14 21:50:03 +07:00
Wilfred Hughes 6b24e28c28 Add support for TOML 2022-04-14 21:21:36 +07:00
Wilfred Hughes 8a1484289f cargo fmt 2022-04-14 18:46:16 +07:00
Wilfred Hughes 1a93162740 Fix block sclars in YAML 2022-04-14 18:45:48 +07:00
Wilfred Hughes 47fe0cfc42 Add some more common keyword-ish capture names for highlighters 2022-04-14 00:40:09 +07:00
Wilfred Hughes b3872e6513 Add syntax highlighting and regression test for Kotlin 2022-04-14 00:38:44 +07:00
Wilfred Hughes 059fc824ff Add Kotlin support
Closes #220
2022-04-14 00:21:29 +07:00
Wilfred Hughes 1c9ae2fbc6 Fix parsing of built-in Zig identifiers
Fixes #248
2022-04-09 19:38:07 +07:00
Wilfred Hughes bdb68cd676 Support @boolean and @character highlighting queries 2022-04-03 22:36:15 +07:00
Wilfred Hughes 10a0e2dba9 Improve YAML handling
Fix atom handling and add syntax highlighting
2022-04-03 22:26:33 +07:00
Wilfred Hughes 9245aada8f Merge remote-tracking branch 'alexmanno/add_yaml_support'
Closes #208
2022-04-03 22:08:44 +07:00
Alex Perkins d6e9afd3d6 add support for Elm 2022-04-03 20:18:33 +07:00
Wilfred Hughes 3bdf8c3e80 Make --dump-ts less verbose
Saying Node at each node is redundant and distracting.
2022-04-03 15:22:10 +07:00
Wilfred Hughes 28c6e35943 Merge #205 2022-04-02 17:18:59 +07:00
Jacob Rothstein 9945270f4b
add gleam
# Conflicts:
#	CHANGELOG.md
#	README.md
2022-03-31 14:08:05 +07:00
Andrew Gutekanst 82071d70c1 Merge upstream changes and resolve conflict 2022-03-31 12:42:57 +07:00
Andrew Gutekanst c601e157d6 Cargo fmt 2022-03-31 12:35:21 +07:00
Wilfred Hughes 299c321e72 Treat interpolated strings as atoms in PHP
This makes diffing slightly less useful for large strings, but it's
consistent with the other languages.
2022-03-31 09:34:03 +07:00
Alessandro Manno f0ea7dc44e
Merge branch 'master' into add_yaml_support
# Conflicts:
#	README.md
2022-03-31 11:23:15 +07:00
Wilfred Hughes 1593de4208 Remove redundant parentheses 2022-03-30 23:35:44 +07:00
Wilfred Hughes 559d0f9b6b Fix Java delimiters `[` and `]` 2022-03-30 23:23:44 +07:00
Andrew Gutekanst 7f2efa1af9 Add Zig support 2022-03-30 23:32:48 +07:00
Alessandro Manno ab1bb48ab3
fixed delimiter_tokens 2022-03-30 12:45:32 +07:00
Alessandro Manno ffddaa645e
Added yaml support 2022-03-30 12:43:01 +07:00
Wilfred Hughes 3c84538253 Escape newlines in --dump-ts when the node kind is '\n'
--dump-ts is only intended as a debugging feature, but it's a little
confusing when newlines aren't escaped.

Fixes #203
2022-03-29 22:51:38 +07:00
Wilfred Hughes ecdf993ff1 Add support for Nix
Closes #196
2022-03-29 22:46:09 +07:00
Jafar eb29b824c3
Merge branch 'master' into pr-add_lua_parser 2022-03-30 06:23:20 +07:00
JafarAbdi b850d41fa5 Add lua support 2022-03-30 06:21:10 +07:00
sogaiu 5696ef6016 Change name shown to users 2022-03-29 14:20:23 +07:00
sogaiu 9ed951044a Format via cargo fmt 2022-03-29 14:14:07 +07:00
sogaiu 5ecc0fbde5 Add janet support 2022-03-29 10:22:14 +07:00
Wilfred Hughes f26ca24df7 Discard '\n' nodes in C and C++
These are from the preprocessor grammar rules, but they're not useful
for difftastic.

Reported upstream: https://github.com/tree-sitter/tree-sitter-c/issues/97

Closes #180
2022-03-27 23:37:23 +07:00
Wilfred Hughes a189f49a5e Return a vec of syntax nodes when converting tree-sitter to difftastic 2022-03-27 23:19:56 +07:00
Wilfred Hughes 92b9680ecd Define a scala.scm of highlighting queries 2022-03-26 23:26:21 +07:00