5 个稳定版本

1.2.2 2020年10月20日
1.2.1 2020年10月10日
1.2.0 2020年3月7日
1.1.0 2020年3月7日
1.0.0 2020年3月7日

#4 in #again


2 crates 中使用

MPL-2.0 许可证

620KB
148 代码行(不包括注释)

Carbon

支持的语言(149种)

  • ActionScript: as
  • AppleScript: applescript, script editor
  • arc: arc
  • ASP: asa
  • ass: aegisub, ass, ssa
  • Assembly x86 (NASM): asm, inc, nasm
  • 批处理文件: bat, cmd
  • BibTeX: bib
  • Bourne Again Shell (bash): .bash_aliases, .bash_completions, .bash_functions, .bash_login, .bash_logout, .bash_profile, .bash_variables, .bashrc, .profile, .textmate_init, bash, fish, sh, zsh
  • C: c, h
  • C#: cs, csx
  • C++: C, c++, cc, cp, cpp, cxx, h, h++, hh, hpp, hxx, inl, ipp
  • Cap’n Proto: capnp
  • Cg: cg
  • Clojure: clj, cljc, cljs, cljx
  • CMake: CMakeLists.txt, cmake
  • CMake C Header: h.in
  • CMake C++ Header: h++.in, hh.in, hpp.in, hxx.in
  • CMake Cache: CMakeCache.txt
  • CMake Listfile: CMakeLists.txt, cmake
  • CMakeCache: CMakeCache.txt
  • Crontab: crontab
  • Crystal: cr
  • CSS: css, css.erb, css.liquid
  • D: d, di
  • Dart: dart
  • Diff: diff, patch
  • Dockerfile: Dockerfile
  • Elixir: ex, exs
  • Elm: elm
  • Erlang: Emakefile, emakefile, erl, hrl
  • ESSL: _f.essl, _fs.essl, _v.essl, _vs.essl, essl, f.essl, v.essl
  • F Sharp: fs
  • Forth: frt, fs
  • 友好交互式 shell (fish): fish
  • fsharp: fs
  • 通用配置: .dircolors, .gitattributes, .gitignore, .gitmodules, .inputrc, Doxyfile, cfg, conf, config, dircolors, gitattributes, gitignore, gitmodules, ini, inputrc, mak, mk, pro
  • Git 属性: .gitattributes, attributes, gitattributes
  • Git 提交: COMMIT_EDITMSG, MERGE_MSG, TAG_EDITMSG
  • Git 配置: .gitconfig, .gitmodules, gitconfig
  • Git 忽略: .gitignore, exclude, gitignore
  • Git 链接: .git
  • Git 日志: gitlog
  • Git 重新提交待办事项: git-rebase-todo
  • GLSL: comp, frag, fs, fsh, fshader, geom, glsl, gs, gsh, gshader, tesc, tese, vert, vs, vsh, vshader
  • Go: go
  • GraphQL: gql, graphql
  • Graphviz (DOT): DOT, dot, gv
  • Groovy: gradle, groovy, gvy
  • Handlebars: handlebars, handlebars.html, hbr, hbrs, hbs, hdbs, hjs, mu, mustache, rac, stache, template, tmpl
  • Haskell: hs
  • HLSL: fx, fxh, hlsl, hlsli, usf
  • HTML: htm, html, shtml, tmpl, tpl, xhtml
  • HTML (ASP): asp
  • HTML (Erlang): yaws
  • HTML (Rails): erb, html.erb, rails, rhtml
  • HTML (Tcl): adp
  • INI: .editorconfig, CFG, INF, INI, REG, URL, cfg, ini, lng, reg, url
  • Java: bsh, java
  • Java 属性: properties
  • Java服务器页面(JSP): jsp
  • JavaScript: htc, js
  • JavaScript(Babel): babel, es6, js, jsx
  • JavaScript(Rails): js.erb
  • Jinja2: j2, jinja2
  • JSON: 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: jet, jetl, kt
  • LaTeX: ltx, tex
  • LESS: less
  • 链接器脚本: ld
  • Lisp: cl, clisp, el, fasl, l, lisp, lsp, mud, scm, ss
  • literate Haskell: lhs
  • lrc: lrc, lyric
  • Lua: lua
  • Makefile: GNUmakefile, Makefile, OCamlMakefile, mak, make, makefile, mk
  • Man: man
  • Markdown: markdn, markdown, md, mdown
  • MATLAB: matlab
  • Maven POM: pom.xml
  • MediaWiki: mediawiki, wiki, wikipedia
  • MiniZinc (MZN): dzn, mzn
  • MSBuild: csproj, fsproj, msbuild, proj, targets, vbproj, vcxproj
  • NAnt构建文件: build
  • Nim: nim, nims
  • Ninja: ninja
  • Nix: nix
  • Objective-C: h, m
  • Objective-C++: M, h, mm
  • OCaml: ml, mli
  • OCamllex: mll
  • OCamlyacc: mly
  • Pascal: dpr, p, pas
  • Perforce客户端规范: client, spec
  • Perl: PL, pl, pm, pod, t
  • PHP: php, php3, php4, php5, php7, phps, phpt, phtml
  • 纯文本: txt
  • PostScript: eps, ps
  • PowerShell: ps1, psd1, psm1
  • 协议缓冲区: proto
  • Python: SConscript, SConstruct, Sconstruct, Snakefile, cpy, gyp, gypi, pxd, pxd.in, pxi, pxi.in, py, py3, pyi, pyw, pyx, pyx.in, rpy, sconstruct, wscript
  • R: R, Rprofile, S, r, s
  • Rd(R文档): rd
  • Reason: re, rei
  • 正则表达式: re
  • reStructuredText: rest, rst
  • Ruby: Appfile, Appraisals, Berksfile, Brewfile, Cheffile, Deliverfile, Fastfile, Gemfile, Guardfile, 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
  • Ruby on Rails: builder, rxml
  • Rust: rs
  • Sass: sass, scss
  • Scala: sbt, scala
  • Smalltalk: st
  • SQL: ddl, dml, sql
  • SQL(Rails): erbsql, sql.erb
  • srt: srt, subrip
  • Starlark: bzl
  • Stylus: styl, stylus
  • SWI-Prolog: pro
  • Swift: swift
  • Tcl: tcl
  • TeX: cls, sty
  • Textile: textile
  • Thrift: thrift
  • TOML: Cargo.lock, Gopkg.lock, tml, toml
  • TypeScript: ts
  • TypeScriptReact: tsx
  • VimL: vim
  • Vue组件: vue
  • Wolfram语言: m, mathematica, mma, nb, wl, wls
  • XML: dtml, opml, rss, svg, tld, xml, xsd, xslt
  • YAML: sublime-syntax, yaml, yml

支持的主题(36)

  • 1337: 1337
  • Agola暗色: agola-dark
  • Ascetic白色: ascetic-white
  • Axar: axar
  • ayu: ayu-dark
  • ayu: ayu-light
  • ayu: ayu-mirage
  • Base16 Ocean暗色: base16-ocean-dark
  • Base16 Ocean亮色: base16-ocean-light
  • BBEdit: bbedit
  • Boron: boron
  • Charcoal: charcoal
  • Cheerfully Light: cheerfully-light
  • Classic Modified: classic-modified
  • Demain: demain
  • Dimmed Fluid: dimmed-fluid
  • Dracula: dracula
  • Gray Matter暗色: gray-matter-dark
  • gruvbox: gruvbox-dark
  • gruvbox: gruvbox-light
  • IDLE: idle
  • GitHub: inspired-github
  • IR_White: ir-white
  • Kronuz: kronuz
  • Material-Theme-Darker: material-dark
  • Material-Theme-Lighter: material-light
  • Monokai: monokai
  • Nyx Bold: nyx-bold
  • One Dark: one-dark
  • Solarized (dark): solarized-dark
  • Solarized (light): solarized-light
  • Subway: Madrid: subway-madrid
  • Subway: Moscow: subway-moscow
  • Tomorrow: Tomorrow
  • Visual Studio Dark: visual-studio-dark
  • zenburn: zenburn

依赖项

~5–13MB
~144K SLoC