Skip to documentation
SLOP

tiny.syn.Language

Reference 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.

No direct callersNo direct callslanguageLanguage
Static calls · unresolved targets: unknown · external targets: unknown.

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

Definitions1
Public names2
Members40
Version26.7.0
Revisiondaab053ee433