Update syntect, using rust-onig with bindgen temporarily
This commit is contained in:
parent
bc496e6101
commit
fbf431d612
1248
Cargo.lock
generated
1248
Cargo.lock
generated
File diff suppressed because it is too large
Load diff
|
@ -11,7 +11,7 @@ serde_derive = "1"
|
|||
chrono = "0.4"
|
||||
globset = "0.4"
|
||||
lazy_static = "1"
|
||||
syntect = { version = "4.1", default-features = false, features = ["default-fancy"]}
|
||||
syntect = "4.1"
|
||||
|
||||
errors = { path = "../errors" }
|
||||
utils = { path = "../utils" }
|
||||
|
|
|
@ -27,7 +27,7 @@ fn main() {
|
|||
let mut builder = SyntaxSetBuilder::new();
|
||||
builder.add_plain_text_syntax();
|
||||
match builder.add_from_folder(package_dir, true) {
|
||||
Ok(_) => println!("Added from folder"),
|
||||
Ok(_) => (),
|
||||
Err(e) => println!("Loading error: {:?}", e)
|
||||
};
|
||||
let ss = builder.build();
|
||||
|
|
|
@ -8,4 +8,4 @@ edition = "2018"
|
|||
tera = "1"
|
||||
toml = "0.5"
|
||||
image = "0.23"
|
||||
syntect = { version = "4.1", default-features = false, features = ["default-fancy"]}
|
||||
syntect = "4.1"
|
||||
|
|
|
@ -16,4 +16,4 @@ default-features = false
|
|||
features = ["blocking", "rustls-tls"]
|
||||
|
||||
[dev-dependencies]
|
||||
mockito = "0.23"
|
||||
mockito = "0.25"
|
||||
|
|
|
@ -6,7 +6,7 @@ edition = "2018"
|
|||
|
||||
[dependencies]
|
||||
tera = { version = "1", features = ["preserve_order"] }
|
||||
syntect = { version = "4.1", default-features = false, features = ["default-fancy"]}
|
||||
syntect = "4.1"
|
||||
pulldown-cmark = "0.7"
|
||||
serde = "1"
|
||||
serde_derive = "1"
|
||||
|
|
|
@ -28,6 +28,7 @@ Here is a full list of supported languages and their short names:
|
|||
- AppleScript -> ["applescript", "script editor"]
|
||||
- ASP -> ["asa"]
|
||||
- Assembly x86 (NASM) -> ["asm", "inc", "nasm"]
|
||||
- AWK -> ["awk"]
|
||||
- Batch File -> ["bat", "cmd"]
|
||||
- BibTeX -> ["bib"]
|
||||
- Bourne Again Shell (bash) -> [".bash_aliases", ".bash_completions", ".bash_functions", ".bash_login", ".bash_logout", ".bash_profile", ".bash_variables", ".bashrc", ".ebuild", ".eclass", ".profile", ".textmate_init", ".zlogin", ".zlogout", ".zprofile", ".zshenv", ".zshrc", "PKGBUILD", "ash", "bash", "sh", "zsh"]
|
||||
|
@ -45,11 +46,14 @@ Here is a full list of supported languages and their short names:
|
|||
- Dart -> ["dart"]
|
||||
- Diff -> ["diff", "patch"]
|
||||
- Dockerfile -> ["Dockerfile", "dockerfile"]
|
||||
- Elixir -> ["ex", "exs"]
|
||||
- Elm -> ["elm"]
|
||||
- Erlang -> ["Emakefile", "emakefile", "erl", "escript", "hrl"]
|
||||
- F# -> ["fs", "fsi", "fsx"]
|
||||
- Fortran (Fixed Form) -> ["F", "F77", "FOR", "FPP", "f", "f77", "for", "fpp"]
|
||||
- Fortran (Modern) -> ["F03", "F08", "F90", "F95", "f03", "f08", "f90", "f95"]
|
||||
- Fortran Namelist -> ["namelist"]
|
||||
- Friendly Interactive Shell (fish) -> ["fish"]
|
||||
- Generic Config -> [".dircolors", ".gitattributes", ".gitignore", ".gitmodules", ".inputrc", "Doxyfile", "cfg", "conf", "config", "dircolors", "gitattributes", "gitignore", "gitmodules", "ini", "inputrc", "mak", "mk", "pro"]
|
||||
- Git Attributes -> [".gitattributes", "attributes", "gitattributes"]
|
||||
- Git Commit -> ["COMMIT_EDITMSG", "MERGE_MSG", "TAG_EDITMSG"]
|
||||
|
@ -67,7 +71,9 @@ Here is a full list of supported languages and their short names:
|
|||
- Haskell -> ["hs"]
|
||||
- HTML -> ["htm", "html", "shtml", "xhtml"]
|
||||
- HTML (ASP) -> ["asp"]
|
||||
- HTML (EEx) -> ["html.eex"]
|
||||
- HTML (Erlang) -> ["yaws"]
|
||||
- HTML (Jinja2) -> ["htm.j2", "html.j2", "xhtml.j2", "xml.j2"]
|
||||
- HTML (Rails) -> ["erb", "html.erb", "rails", "rhtml"]
|
||||
- HTML (Tcl) -> ["adp"]
|
||||
- Java -> ["bsh", "java"]
|
||||
|
@ -75,6 +81,7 @@ Here is a full list of supported languages and their short names:
|
|||
- Java Server Page (JSP) -> ["jsp"]
|
||||
- JavaScript -> ["htc", "js"]
|
||||
- JavaScript (Rails) -> ["js.erb"]
|
||||
- Jinja2 -> ["j2", "jinja", "jinja2"]
|
||||
- JSON -> ["Pipfile.lock", "ipynb", "json", "sublime-build", "sublime-color-scheme", "sublime-commands", "sublime-completions", "sublime-keymap", "sublime-macro", "sublime-menu", "sublime-mousemap", "sublime-project", "sublime-settings", "sublime-theme"]
|
||||
- Julia -> ["jl"]
|
||||
- Kotlin -> ["kt", "kts"]
|
||||
|
@ -83,6 +90,7 @@ Here is a full list of supported languages and their short names:
|
|||
- Linker Script -> ["ld"]
|
||||
- Lisp -> ["cl", "clisp", "el", "fasl", "l", "lisp", "lsp", "mud", "scm", "ss"]
|
||||
- Literate Haskell -> ["lhs"]
|
||||
- lrc -> ["lrc", "lyric"]
|
||||
- Lua -> ["lua"]
|
||||
- Makefile -> ["GNUmakefile", "Makefile", "Makefile.am", "Makefile.in", "OCamlMakefile", "mak", "make", "makefile", "makefile.am", "makefile.in", "mk"]
|
||||
- Markdown -> ["markdn", "markdown", "md", "mdown"]
|
||||
|
@ -101,12 +109,14 @@ Here is a full list of supported languages and their short names:
|
|||
- PHP -> ["php", "php3", "php4", "php5", "php7", "phps", "phpt", "phtml"]
|
||||
- Plain Text -> ["txt"]
|
||||
- PowerShell -> ["ps1", "psd1", "psm1"]
|
||||
- PureScript -> ["purs"]
|
||||
- Python -> ["SConscript", "SConstruct", "Sconstruct", "Snakefile", "bazel", "bzl", "cpy", "gyp", "gypi", "pxd", "pxd.in", "pxi", "pxi.in", "py", "py3", "pyi", "pyw", "pyx", "pyx.in", "rpy", "sconstruct", "vpy", "wscript"]
|
||||
- R -> ["R", "Rprofile", "r"]
|
||||
- Racket -> ["rkt"]
|
||||
- Rd (R Documentation) -> ["rd"]
|
||||
- Reason -> ["re", "rei"]
|
||||
- Regular Expression -> ["re"]
|
||||
- Regular Expressions (Elixir) -> ["ex.re"]
|
||||
- reStructuredText -> ["rest", "rst"]
|
||||
- Ruby -> ["Appfile", "Appraisals", "Berksfile", "Brewfile", "Cheffile", "Deliverfile", "Fastfile", "Gemfile", "Guardfile", "Podfile", "Rakefile", "Rantfile", "Scanfile", "Snapfile", "Thorfile", "Vagrantfile", "capfile", "cgi", "config.ru", "fcgi", "gemspec", "irbrc", "jbuilder", "podspec", "prawn", "rabl", "rake", "rb", "rbx", "rjs", "ruby.rail", "simplecov", "thor"]
|
||||
- Ruby Haml -> ["haml", "sass"]
|
||||
|
@ -117,12 +127,17 @@ Here is a full list of supported languages and their short names:
|
|||
- SCSS -> ["scss"]
|
||||
- SQL -> ["ddl", "dml", "sql"]
|
||||
- SQL (Rails) -> ["erbsql", "sql.erb"]
|
||||
- srt -> ["srt", "subrip"]
|
||||
- Stylus -> ["styl", "stylus"]
|
||||
- SWI-Prolog -> ["pro"]
|
||||
- Swift -> ["swift"]
|
||||
- Tcl -> ["tcl"]
|
||||
- TeX -> ["cls", "sty"]
|
||||
- Textile -> ["textile"]
|
||||
- TOML -> ["Cargo.lock", "Gopkg.lock", "Pipfile", "tml", "toml"]
|
||||
- TypeScript -> ["ts"]
|
||||
- TypeScriptReact -> ["tsx"]
|
||||
- VimL -> ["vim"]
|
||||
- XML -> ["dtml", "opml", "rng", "rss", "svg", "tld", "xml", "xsd", "xslt"]
|
||||
- YAML -> ["sublime-syntax", "yaml", "yml"]
|
||||
```
|
||||
|
|
Binary file not shown.
Loading…
Reference in a new issue