syntect icon indicating copy to clipboard operation
syntect copied to clipboard

Rust library for syntax highlighting using Sublime Text syntax definitions.

Results 75 syntect issues
Sort by recently updated
recently updated
newest added

According to [Clojure.sublime-syntax](https://github.com/sublimehq/Packages/blob/master/Clojure/Clojure.sublime-syntax), 3 file extensions are supported: `clj`, `cljc` and `edn`. However, it looks like only `clj` is recognized by syntect. ```rust let ss = SyntaxSet::load_defaults_newlines(); if let Some(clj)...

I'd like to know if there's any additional ways I can cache things to optimize loading and parsing speed in wasm. I've read a bit of the docs, and I...

question

# Bug Report If you use css for syntax highlighting and that syntax theme makes use of font-style: underline, then syntect generates invalid css. This is from my zola config.toml:...

bug

Hi, I use your library for reading themes and determining colors, but for parsing I use tree-sitter. From profiling I have learned that building a highlighter whenever I query for...

enhancement

After #98, `Result` is returned in a lot of new places. These functions should probably document when errors can occur, and why. According to [clippy's `missing_errors_doc` lint](https://rust-lang.github.io/rust-clippy/rust-1.56.0/index.html#missing_errors_doc), "Documenting the type...

enhancement

Is it possible to add line numbers to the generated HTML? I [tried](https://stackoverflow.com/questions/40842277/create-line-numbers-on-pre-with-css-only) adding counter to `pre` tag but since a single line can have multiple spans it does not...

enhancement

I would like to make a feature request for support for tmLanguage files and/or the VSCode flavour of this. It is a very prevalent grammar format which would allow us...

enhancement

this is an initial rework of the `syntest` example, to make it usable internally, as it would be useful for parser tests (see https://github.com/trishume/syntect/pull/180#discussion_r198685953). I think it will need some...

enhancement

Sublime Text build 4050 introduced a new feature to `sublime-syntax` grammars called branch points. The docs haven't been published yet, but the packages which ship with Sublime Text have started...

enhancement