tiny.syn.Language
Defined in language.
A caller passes one tag to highlight or highlightLine to choose the scanner for a line.
API (40)
Fields and members
Public fields and members.
cchicletclojurecppcsharpcssdartdiffelixirerlanggohaskellhtmljavajavascriptjsonkotlinlispluamakemarkdownnixocamlperlphppythonrrubyrustscalashellsqlsvelteswifttomltypescriptvuexmlyamlzig
Source
Source: lib/syn/src/language.zig:18
zig
/// A caller passes one tag to `highlight` or `highlightLine` to choose the scanner for a line. The/// enum has one tag per language the scanners know, forty in all. Each tag is named after its/// language, and `name` gives its short text form. A tag can stand for a family: `shell` covers sh,/// bash, zsh and fish, and `lisp` covers Scheme, Racket, Common Lisp and Emacs Lisp. Tags share/// scanners: `lisp`, `clojure` and `chiclet` use the Lisp scanner, and every language without a/// scanner of its own uses a generic scanner for C-like syntax.pub const Language = enum { zig, /// This repository's own programming language, which `lib/chic` parses and compiles. Its lines /// go through the same scanner as Lisp and Clojure. `fromName` accepts `chiclet` and `chic`, /// and `fromPath` accepts the `.chic` extension and a file named `.chic`. chiclet, lisp, json, shell, diff, markdown, python, yaml, toml, c, cpp, csharp, java, javascript, typescript, go, rust, ruby, php, swift, kotlin, scala, sql, html, css, xml, nix, lua, haskell, elixir, erlang, clojure, ocaml, r, make, perl, dart, vue, svelte,};Source: lib/syn/src/root.zig:43
zig
pub const Language = language.Language;Audit
| Definitions | 1 |
|---|---|
| Public names | 2 |
| Members | 40 |
| Version | 26.7.0 |
| Revision | daab053ee433 |