Comments (4)
Ah I think you're right! Swapping to \\s
does fix the playground too.
So I think that may just be a small typo on the docs page where it needs to be \\s
rather than \s
, and then it makes sense to me that \n
, \t
, \r
, and \0
are the only other ones handled specially.
from tree-sitter.
Sure I'll do one monday!
from tree-sitter.
Apologies if I'm mistaken, but it seems to work if you escape the slash before the s
in your query.
Playground:
Query via CLI:
from tree-sitter.
Yes, because we support escape sequences in those strings, you need to escape the backslash if you want to write a literal backslash (which you want in this case, so that the regex engine sees \s
). Want to open a PR for the docs fix?
from tree-sitter.
Related Issues (20)
- Compile-time kind and field ids that are generated by binding generation. HOT 8
- `failed to rename wasm output file` on different Drive letter HOT 3
- "Failed to locate a package.json file that has a "tree-sitter" section, please ensure you have one, and if you don't then consult the docs" HOT 2
- Test runner can't parse CRLF in some cases
- Add parent language name to grammar.json
- *** stack smashing detected ***: terminated Fatal error 6: Aborted HOT 44
- "generate_parser_in_directory" generates spurious "grammar.js" and "package.json" files when "grammar_path" is specified but not equal to "<repo_path>/grammar.js". HOT 3
- array_reserve does not handle malloc errors HOT 3
- Compile error while following `Rust Tree-sitter` instruction HOT 3
- Support `atof` for WASM builds HOT 8
- Difference between tree-sitter playground and cursor.matches HOT 3
- centralized "version" number in config HOT 1
- generate should not create .editorconfig (et al.), that should be part of an init command HOT 2
- Should the `.gitattributes` template use `text=auto`? HOT 2
- error[E0463]: can't find crate for `thiserror_impl` HOT 6
- `ts_node_field_name_for_child()` can incorrectly assign field names to `extras` HOT 1
- Alias not queriable HOT 3
- `ts_node_is_missing()` fails if missing node wraps hidden rules
- ts_highlighter_add_language CAPI and Rust Implementation signature mismatch HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tree-sitter.