Maurício Szabo
478a35d968
Fixed some bugs on the TextMate Grammar
2023-03-08 21:58:51 -03:00
Maurício Szabo
28a3ec14c2
More fixes to Ruby grammar
2023-03-08 21:58:42 -03:00
Maurício Szabo
293d83697b
Adding some more specific test
2023-03-08 21:25:08 -03:00
Maurício Szabo
192a7397c1
Sanity check for matching scopes
2023-03-08 21:14:48 -03:00
Maurício Szabo
ad296d37a2
Merge remote-tracking branch 'clocktower/tree-sitter-hell' into fix-ruby-tree-sitter-scopes-with-right-tokens
2023-03-08 20:01:32 -03:00
Maurício Szabo
100ca5a6d7
Adding a ready
promise
2023-03-08 19:59:58 -03:00
Maurício Szabo
815b66c9dd
Revert adding a hook for highlight
2023-03-07 14:41:14 -03:00
Andrew Dupont
c2e44b4c5c
Don't force a parse just to do folds (this was dumb of me)
2023-03-06 22:02:05 -08:00
Andrew Dupont
bea325285e
Get indents and folds working again
2023-03-06 19:11:37 -08:00
Andrew Dupont
67f7fb7a9f
Get injections working.
...
Preliminary. Folds and indents are broken at the moment.
2023-03-06 18:12:09 -08:00
Maurício Szabo
77de02a935
Make require the same as TextMate
2023-03-06 22:34:40 -03:00
Maurício Szabo
ebf4d77c6b
More fixes to highlights
2023-03-06 22:33:02 -03:00
Maurício Szabo
600679896c
Adding a hook for did-change-highlighting
2023-03-06 22:12:44 -03:00
Maurício Szabo
f6018f7cab
Fixed-ish tests
2023-03-06 22:12:18 -03:00
Maurício Szabo
46b19aad62
Merge remote-tracking branch 'clocktower/tree-sitter-hell' into fix-ruby-tree-sitter-scopes-with-right-tokens
2023-03-06 21:18:42 -03:00
Maurício Szabo
a80cbf20b3
Some highlights changes
2023-03-06 21:16:06 -03:00
Maurício Szabo
0362fc7021
Merge remote-tracking branch 'origin/feature/modernize-tree-sitter' into fix-ruby-tree-sitter-scopes
2023-03-06 20:31:10 -03:00
Maurício Szabo
0863b759c0
Removing VERY specific matches
2023-03-06 17:39:14 -03:00
Maurício Szabo
e884956ce4
Changed the matching of scopes
...
A quick explanation on this - the old code was matching if the full
scope was ok. This is fine when we want to test a single grammar, but
for example, TextMate grammars always added `.ruby` on the last part of
the grammar. That was quite bad for TreeSitter, that basically didn't do
the same thing. So now it matches a fine crafted Regexp that basically
checks if the full scope is match from the beginning, OR if part of the
scope (up to just before the `.`) matches. So, for example, for
`constant.other.ruby` it'll match `constant`, `constant.other`, and
`constant.other.ruby` but it'll NOT MATCH `constant.oth`.
2023-03-06 17:35:22 -03:00
Andrew Dupont
12e8c9c2d2
Paving the way for injections
...
`LanguageLayer` is re-introduced. All tree parsing and querying will eventually need to live inside an instance of `LanguageLayer`. Right now, just the syntax highlighting is doing so.
2023-03-06 12:07:55 -08:00
Andrew Dupont
3f614b447f
Fixes
...
Implement `isRowCommented`, add more syntax node predicates, implement automatic reloading of SCM files.
2023-03-06 00:11:06 -08:00
Andrew Dupont
e73d69ec53
Implement bufferRangeForScopeAtPosition
2023-03-05 14:17:09 -08:00
Andrew Dupont
319e0b7cff
Fix a few bugs.
...
Get indents working better. Move things around a bit.
2023-03-04 23:47:48 -08:00
Andrew Dupont
6a41b3bb6a
Lots of fixes.
2023-03-04 19:47:50 -08:00
Andrew Dupont
ebf30d861f
briefly out of hell
2023-03-03 18:16:07 -08:00
Andrew Dupont
092fe3f34f
additional hell
2023-03-03 17:34:24 -08:00
Andrew Dupont
917fdf551b
I am in hell
2023-03-03 11:02:32 -08:00
Maurício Szabo
e1cce9ac9a
Added lang attribute
2023-03-02 20:31:42 -03:00
Maurício Szabo
7842474f71
Fix iPath error
2023-03-01 13:43:44 -03:00
Maurício Szabo
5b8050319f
Getting only real assert comments
2023-03-01 13:42:44 -03:00
Maurício Szabo
785bfc6ba4
Merge remote-tracking branch 'origin/feature/modernize-tree-sitter' into fix-ruby-tree-sitter-scopes
2023-02-28 20:37:54 -03:00
Maurício Szabo
784adc17cf
Adding a testfile for TS grammar
2023-02-28 20:37:43 -03:00
Maurício Szabo
d5f2f4f9fe
Trying to solve some scopes on highlights
2023-02-28 20:37:28 -03:00
Maurício Szabo
18b162cedc
Merge pull request #401 from pulsar-edit/wasm-tree-sitter-folds
...
Implementing folds for new tree-sitter
2023-02-28 20:06:58 -03:00
Maurício Szabo
f500b7a309
Merge branch 'feature/modernize-tree-sitter' into wasm-tree-sitter-folds
2023-02-28 20:06:44 -03:00
Maurício Szabo
83b2373f4e
Merge pull request #407 from pulsar-edit/wasm-tree-sitter-indenter
...
Indenting with modern tree-sitter
2023-02-28 20:04:47 -03:00
Maurício Szabo
8c72b01e77
Adding a textmate grammar test
2023-02-27 21:56:09 -03:00
Maurício Szabo
ad55aa987d
Adding some helpers to Jasmine
2023-02-27 21:55:40 -03:00
Maurício Szabo
99782b87f4
Merge branch 'wasm-tree-sitter-folds' of github.com:pulsar-edit/pulsar into wasm-tree-sitter-folds
2023-02-27 13:02:59 -03:00
Maurício Szabo
eea808b4fa
Removed old comments
2023-02-27 13:02:49 -03:00
Maurício Szabo
351f91e123
Remove commented stuff
...
Co-authored-by: confused_techie <dev@lhbasics.com>
2023-02-27 13:00:46 -03:00
Maurício Szabo
441fbc523a
Indenting Ruby
2023-02-27 00:00:40 -03:00
Maurício Szabo
cf9abdb463
Merge branch 'tests-for-ruby' into feature/modernize-tree-sitter
2023-02-25 16:54:25 -03:00
Maurício Szabo
4a88e8c9ce
Adding some helpers to Jasmine
2023-02-25 16:39:30 -03:00
Maurício Szabo
1774e2e593
Migrated to helpers
2023-02-25 16:39:20 -03:00
Maurício Szabo
b42b81f141
Adding some helpers to Jasmine
2023-02-25 16:35:50 -03:00
Maurício Szabo
8b342258fc
Folds
2023-02-24 22:02:29 -03:00
Maurício Szabo
08d0016e42
Folds query
2023-02-24 21:41:45 -03:00
Maurício Szabo
95c98b1db6
Adding folds test
2023-02-24 21:41:32 -03:00
Maurício Szabo
f71aedbff4
Folds test
2023-02-24 21:41:21 -03:00