Comments (7)
Thanks for the info! 🙏🏻 I still can't work out the mechanic to include a new syntax. e.g. if I search the syntect repo for erlang, I don't find anything...
from syntect.
did you checkout submodules? Erlang is in testdata/Packages/Erlang
from syntect.
I'm not yet convinced it's something we want in syntect as then we'll open the floodgates for requests for getting all sorts of packages added to syntect by default.
Ah gotcha. Yeah, that would quickly become impractical.
Please help me to understand for what reason do you want it in this repository as opposed to in your consumer codebase?
Right, I don't think I've been appreciating how straightforward it would be to just add the nushell schema to my consumer codebase.
Beyond my own immediate use case, my motivation to have the schema included upstream is to help the nushell project become more mainstream, tooling-wise. It's a shame sublimehq/Packages isn't accepting PRs, but it also makes sense. They would be in a similar floodgate position.
I'll close this issue for now. Thanks Keith 🙏🏻 syntect is a tremendous asset to the whole community.
from syntect.
I'm curious if the mechanism that includes syntax definitions can source the definition directly from nushell_sublime_syntax, so updates are picked up automatically?
typically syntaxes are included as git submodules, so dependabot can easily create PRs to bump them automatically
from syntect.
I think I see. It looks like if testdata/Packages/*/*.sublime-syntax
is present, then it will become available as a SyntaxSet.
In which case, my next step is to try to get https://github.com/kurokirasama/nushell_sublime_syntax added to https://github.com/sublimehq/Packages
ah, but sublimehq/Packages isn't accepting new packages
from syntect.
would it be reasonable to add https://github.com/kurokirasama/nushell_sublime_syntax as an additional submodule, perhaps to: testdata/MoarPackages, and to update the build to load syntax from testdata/Packages + testdata/MoarPackages? .. or something roughly along those lines?
from syntect.
It may be reasonable, but I'm not yet convinced it's something we want in syntect
as then we'll open the floodgates for requests for getting all sorts of packages added to syntect
by default. (see #523 (comment) for example.) Please help me to understand for what reason do you want it in this repository as opposed to in your consumer codebase?
from syntect.
Related Issues (20)
- use new bitflags 2 HOT 10
- Provide C API HOT 2
- codecov badge in the Readme is unintentionally misleading
- No convenient way to combine loading defaults + files HOT 1
- unable to build on mac_os
- Where'd I get a sample CSS with all the classes emitted by `syntect` defined?
- Provide C/GO/TypeScript bindings? HOT 1
- Regex matching panic HOT 4
- C++ string bug when using a '%' character
- Remove dependencies from public API
- FeatureRequest: support 'gutterForegroundHighlight'
- CSS: wrong name: `storage.modifier.c++` HOT 1
- cargo-deny issue due to transitive dependency `safemem`, which is no longer maintained HOT 1
- Add Typst to readme
- Add nix syntax support HOT 2
- How to use the .tmTmeme file in the project with Theme HOT 2
- Update to newer version of sublimehq/Packages HOT 2
- UTF-8 BOM prevents syntax detection by the first line of file
- Rust: Weird rendering of simple println!() HOT 2
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 syntect.