Steven Kalt
09fb24c03d
add encoding to web_ui.html ( #504 )
...
addressing #503 .
2019-12-06 19:28:08 -08:00
Max Brunsfeld
0cb2ef1082
Fix code paths that still conflated null characters with EOF
2019-12-06 15:29:03 -08:00
Han BAO
47a926067d
Update README.md ( #502 )
...
configure the recognized names for highlighting
2019-12-06 14:00:27 -08:00
Han BAO
acc5f092c8
FIxing the README in highlight ( #501 )
...
* Correct README.md in /highlight
correct the lifetime in highlighter.highlight and correct the cases in match so that the demo in README could work.
* Update README.md
another small fix
* Update highlight/README.md
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@github.com>
2019-12-06 13:05:28 -08:00
Max Brunsfeld
2758103646
0.16.0
2019-12-06 12:48:11 -08:00
Max Brunsfeld
d426f46087
Add unit test for symbols respecting simple aliases
2019-12-06 12:47:27 -08:00
Max Brunsfeld
6d1d8cc217
query: Skip workaround code path when using new symbol map field
2019-12-06 12:11:45 -08:00
Max Brunsfeld
7032dae4f6
Include alias symbols in unique symbol map
2019-12-06 12:11:09 -08:00
Max Brunsfeld
bea6e0e28b
cli: Generate parseres with the new ABI by default
2019-12-06 11:51:55 -08:00
Max Brunsfeld
bd49fbab12
cli: Allow globs and exclusions (via '!' prefix) as args to parse
2019-12-06 11:41:21 -08:00
Max Brunsfeld
1c8aed790d
Merge pull request #500 from tree-sitter/dedup-symbols
...
Store a mapping to ensure no two symbols map to the same metadata
2019-12-06 09:51:28 -08:00
Max Brunsfeld
56c620c005
Store a mapping to ensure no two symbols map to the same metadata
2019-12-05 17:21:46 -08:00
Max Brunsfeld
d6c7b243a7
Merge pull request #499 from tree-sitter/highlight-test
...
Add a system for testing syntax highlighting queries
2019-12-05 15:55:24 -08:00
Max Brunsfeld
4b9feccd13
Run syntax highlighting tests as part of the main test command
...
Also, allow `corpus` to be in the `test/corpus` directory, and expect
highlighting tests to be in the `test/highlight` directory.
2019-12-05 15:28:16 -08:00
Max Brunsfeld
6dbfbaed07
Start work on a system for testing syntax highlighting
2019-12-05 09:45:54 -08:00
Max Brunsfeld
82a8b15714
docs: Add C# parser to the playground
2019-12-02 14:00:26 -08:00
Max Brunsfeld
7ee65222d3
docs: Consider C# to be fairly complete
2019-12-02 13:54:24 -08:00
Max Brunsfeld
388511dbc9
Merge pull request #496 from kramred/patch-1
...
Fix small typo in docs
2019-12-02 09:06:45 -08:00
Mark Schmitz
3fbe0be6e2
Fix small typo in docs
2019-12-02 13:05:41 +00:00
Max Brunsfeld
f2118ac7f0
Merge pull request #494 from smacker/patch-1
...
add missing unicode include to query.c
2019-12-01 13:21:50 -08:00
Max Brunsfeld
4ef8e54d96
Merge pull request #495 from akiyosi/master
...
Fix link to contributing docs
2019-12-01 13:21:15 -08:00
akiyosi
1742f32fcc
Fix link to contributing docs
2019-11-28 22:07:32 +09:00
Maxim Sukharev
a647de1ef5
add missing unicode include to query.c
...
it causes problems with building tree-sitter with cgo
2019-11-28 01:32:41 +01:00
Max Brunsfeld
284489a83b
Fix home directory name in travis config file
2019-11-22 13:05:46 -08:00
Max Brunsfeld
a23e8b3dcb
Merge pull request #492 from tree-sitter/query-fixes
...
Fix handling of tricky patterns in tree queries
2019-11-22 13:05:20 -08:00
Max Brunsfeld
c957a5b8e7
Add test for handling of too many states in query captures
2019-11-22 11:54:32 -08:00
Max Brunsfeld
e3f6b1a1af
Query - If too many states, kill the one w/ the earliest capture
2019-11-22 11:54:12 -08:00
Max Brunsfeld
71998ef3c1
web: 0.15.11
2019-11-20 11:12:50 -08:00
Max Brunsfeld
9ea3668f75
wasm: Fix logic for finding language functions
2019-11-20 11:10:49 -08:00
Max Brunsfeld
70309ad846
0.15.14
2019-11-20 10:56:25 -08:00
Max Brunsfeld
87c2021e6e
Merge pull request #490 from tree-sitter/fix-compiler-warnings
...
Fix a few compiler warnings
2019-11-20 10:48:32 -08:00
Damien Guard
599e4f0ec4
Fix a few compiler warnings
2019-11-20 10:21:10 -08:00
Max Brunsfeld
594da085ef
Merge pull request #489 from tree-sitter/named-aliases
...
Properly handle productions that contain named aliases
2019-11-19 15:04:50 -08:00
Max Brunsfeld
5a979d1457
node-types: Add test for field merging with aliases
...
Co-Authored-By: Timothy Clem <timothy.clem@gmail.com>
2019-11-19 14:31:56 -08:00
Max Brunsfeld
1d63434664
Refactor node-type merging
2019-11-19 11:57:21 -08:00
Max Brunsfeld
5489bc4dc5
Fix small issues with merging node types
...
* Merge the `required` field with an 'and', not an 'or'
* Merge field info in addition to children info
2019-11-19 11:55:21 -08:00
Timothy Clem
e2325102d1
No printing
2019-11-19 09:03:35 -08:00
Timothy Clem
c346ce4a5e
Try not to loose existing children
2019-11-18 14:48:24 -08:00
Timothy Clem
5c72642634
A test demonstrating the issue with named aliases
2019-11-18 14:47:48 -08:00
Tuấn-Anh Nguyễn
8e6220a0c5
Allow QueryCursor::matches' text_callback to return any AsRef<[u8]> ( #488 )
2019-11-17 10:40:06 -08:00
Max Brunsfeld
ce633a85c6
Improve ts_language_symbol_for_name function
2019-11-15 14:21:13 -08:00
Max Brunsfeld
660efd8c0f
Fix handling of token rules directly inside of alias, prec, or field.
...
Fixes #483
2019-11-15 10:53:17 -08:00
Max Brunsfeld
b4a2f4ed60
Fix debug/release conditional compilation flags for free()
2019-11-15 10:09:22 -08:00
Max Brunsfeld
967da88371
Avoid unnecessary recompiles between debug & test builds
...
This makes development much quicker when switching back and forth
between compiling with RLS while editing and running tests with
`cargo test`.
2019-11-14 13:34:25 -08:00
Max Brunsfeld
d45b98c7d9
node-types - Fix duplicate when a terminal is aliased with the same name as a non-terminal
2019-11-14 09:31:25 -08:00
Max Brunsfeld
b7696a8800
0.15.13
2019-11-13 10:55:24 -08:00
Max Brunsfeld
5767bbc806
Avoid generating C char literals with control characters
...
Fixes #487
2019-11-13 10:54:34 -08:00
Max Brunsfeld
a2bbc7391b
node-types: Fix handling of simple aliased inlined rules
2019-11-13 10:38:47 -08:00
Emily Marigold Klassen
1d2f171067
binding_web: fix typo in fieldNameForId ( #481 )
2019-11-08 21:55:08 -08:00
Max Brunsfeld
079aa26a99
Link to docs.rs from docs site
2019-11-08 14:31:24 -08:00