a structural diff that understands syntax 🟥🟩
 
 
 
 
 
Go to file
susliko 0e89e94d5f Better comments
Problem
-------
The following comment combinations are not parsed:
1. ```
// /*
// *
// */
```
2. ```
/* // */
```
Solution
-------
- set higher lexing priority for `$._comment_text` token
- include "//" as an alternative to the contents of `$.block_comment`
2023-06-12 15:51:10 +07:00
.github Fix C code fidelity check 2023-06-08 09:27:01 +07:00
bindings SPM support (#234) 2023-05-25 14:33:28 +07:00
corpus Better comments 2023-06-12 15:51:10 +07:00
examples Improve grammar for package declarations 2018-02-24 17:19:26 +07:00
queries/scala Added block comments to the comment highlighting query 2023-06-06 11:55:23 +07:00
script Issue OUTDENT with extra spaces before brackets 2023-06-11 00:00:13 +07:00
src Merge pull request #301 from susliko/extra-spaces-before-outdents 2023-06-11 01:57:23 +07:00
test Added block comments to the comment highlighting query 2023-06-06 11:55:23 +07:00
.envrc Setup nix with direnv (#129) 2023-01-12 19:11:45 +07:00
.git-blame-ignore-revs Ignore the formatting commit 2023-06-06 11:00:40 +07:00
.gitattributes Initial commit 2018-02-22 10:58:11 +07:00
.gitignore Merge pull request #240 from eed3si9n/wip/smoke 2023-05-25 19:32:54 +07:00
.npmignore Bump tree-sitter-cli to 0.19 2021-03-04 15:02:10 +07:00
.prettierrc.json Format JavaScript file automatically 2023-06-06 10:46:44 +07:00
CONTRIBUTING.md docs: add some basic contributing docs 2023-01-15 12:43:49 +07:00
Cargo.toml Fix typo in Cargo.toml 2023-06-06 01:53:29 +07:00
LICENSE Add MIT license 2019-08-07 11:11:36 +07:00
Package.swift SPM support (#234) 2023-05-25 14:33:28 +07:00
README.md docs: add some basic contributing docs 2023-01-15 12:43:49 +07:00
binding.gyp Bump tree-sitter-cli to 0.19 2021-03-04 15:02:10 +07:00
default.nix chore: Install tree-sitter via nix for the nix-shell 2023-05-19 18:01:37 +07:00
grammar.js Better comments 2023-06-12 15:51:10 +07:00
package.json Format JavaScript file automatically 2023-06-06 10:46:44 +07:00

README.md

tree-sitter-scala

Test the grammar

Scala grammar for tree-sitter covering both Scala 2 and 3.

References

Scala 2

Scala 3

Development and Contributing

Please refer to the CONTRIBUTING.md for instructions on getting set up.