Comments (2)
There isn't anything in the grammar that is specifically UTF-8 and we're using tree-sitter ^0.20.0 so I'm not sure what needs to be done here - I checked a couple of the other repos but didn't see anything about UTF-16 there either. I would have expected tree-sitter itself to take care of that as it reads the file.
from tree-sitter-c-sharp.
Sorry for the noise, I think this issue can be closed. I think the CLI is calling parse
, which has a comment Parse a slice of UTF8 text.
, which explains why this happens. The documentation details TSInput
, which does have an encoding.
from tree-sitter-c-sharp.
Related Issues (20)
- Fix `record_base` to allow generic types and generic constructor calls HOT 3
- Add support for C# 11 unsigned right shift operator HOT 1
- Move `src/parser.c` to git LFS HOT 24
- Allow contextual keywords to be used as identifiers HOT 4
- Improve pattern parsing HOT 2
- Improve interpolated raw string literal parsing HOT 3
- Improve declaration expression parsing HOT 1
- Generic methods not highlighted correctly HOT 9
- Improve `#pragma` parsing
- Unhide _preprocessor_call
- Fix `is_expression` and `is_pattern_expression` parsing
- Parser errors on malformed C# code different in playground HOT 2
- Indentation Support? HOT 2
- multiline Lambda expression'a don't indent well HOT 1
- Highlight members within a class differently than local variables HOT 1
- Using statement with a function call with parameters is not parsed as invocation, instead a variable declaration HOT 4
- Parse error classes with primary constructors (C#12, Dotnet 8 LTS) HOT 3
- Release 0.21 compatible version
- Support primary constructor HOT 1
- `file_scoped_namespace_declaration` range output different to `namespace_declaration` range
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-c-sharp.