feat: add syntax mapping for HAML - feature #13009

This commit is contained in:
Alexander Adam 2021-09-24 12:05:03 +02:00
parent 9f8aad957d
commit 4df5d2df62
No known key found for this signature in database
GPG key ID: DF4B77AFE2D941FD
2 changed files with 7 additions and 1 deletions

View file

@ -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: {

View file

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