feat: add Nix syntax highlighting (#3110)
* feat: add Nix syntax highlighting * fix: update Nix dependency hash * fix: update Nix dependency hash --------- Co-authored-by: Mohamed Boudra <boudra.moha@gmail.com>
This commit is contained in:
co-authored by
Mohamed Boudra
parent
0eab0b7828
commit
c8b2c8351f
@@ -15,6 +15,7 @@ import { parser as rustParser } from "@lezer/rust";
|
||||
import { parser as xmlParser } from "@lezer/xml";
|
||||
import { parser as yamlParser } from "@lezer/yaml";
|
||||
import { csharpLanguage } from "@replit/codemirror-lang-csharp";
|
||||
import { nixLanguage } from "@replit/codemirror-lang-nix";
|
||||
import { parser as elixirParser } from "lezer-elixir";
|
||||
import type { Parser } from "@lezer/common";
|
||||
|
||||
@@ -69,6 +70,8 @@ const languagesByExtension: Record<string, Language> = {
|
||||
dart: StreamLanguage.define(dart),
|
||||
// C#
|
||||
cs: csharpLanguage,
|
||||
// Nix
|
||||
nix: nixLanguage,
|
||||
// Elixir
|
||||
ex: language(elixirParser),
|
||||
exs: language(elixirParser),
|
||||
|
||||
Reference in New Issue
Block a user