mirror of
https://github.com/desktop/desktop
synced 2024-08-24 18:57:33 +00:00
feat: add syntax mapping for HAML - feature #13009
This commit is contained in:
parent
9f8aad957d
commit
4df5d2df62
|
@ -313,6 +313,12 @@ const extensionModes: ReadonlyArray<IModeDefinition> = [
|
|||
'.slim': 'application/x-slim',
|
||||
},
|
||||
},
|
||||
{
|
||||
install: () => import('codemirror/mode/haml/haml'),
|
||||
mappings: {
|
||||
'.haml': 'text/x-haml',
|
||||
},
|
||||
},
|
||||
{
|
||||
install: () => import('codemirror/mode/sieve/sieve'),
|
||||
mappings: {
|
||||
|
|
|
@ -8,7 +8,7 @@ We introduced syntax highlighted diffs in [#3101](https://github.com/desktop/des
|
|||
|
||||
We currently support syntax highlighting for the following languages and file types.
|
||||
|
||||
JavaScript, JSON, TypeScript, Coffeescript, HTML, Asp, JavaServer Pages, CSS, SCSS, LESS, VUE, Markdown, Yaml, XML, Diff, Objective-C, Scala, C#, Java, C, C++, Kotlin, Ocaml, F#, Swift, sh/bash, SQL, CYPHER, Go, Perl, PHP, Python, Ruby, Clojure, Rust, Elixir, Haxe, R, PowerShell, Visual Basic, Fortran, Lua, Crystal, Julia, sTex, SPARQL, Stylus, Soy, Smalltalk, Slim, Sieve, Scheme, ReStructuredText, RPM, Q, Puppet, Pug, Protobuf, Properties, Apache Pig, ASCII Armor (PGP), Oz, Pascal, Toml, Dart and Docker.
|
||||
JavaScript, JSON, TypeScript, Coffeescript, HTML, Asp, JavaServer Pages, CSS, SCSS, LESS, VUE, Markdown, Yaml, XML, Diff, Objective-C, Scala, C#, Java, C, C++, Kotlin, Ocaml, F#, Swift, sh/bash, SQL, CYPHER, Go, Perl, PHP, Python, Ruby, Clojure, Rust, Elixir, Haxe, R, PowerShell, Visual Basic, Fortran, Lua, Crystal, Julia, sTex, SPARQL, Stylus, Soy, Smalltalk, Slim, HAML, Sieve, Scheme, ReStructuredText, RPM, Q, Puppet, Pug, Protobuf, Properties, Apache Pig, ASCII Armor (PGP), Oz, Pascal, Toml, Dart and Docker.
|
||||
|
||||
This list was never meant to be exhaustive, we expect to add more languages going forward but this seemed like a good first step.
|
||||
|
||||
|
|
Loading…
Reference in a new issue