From b88980d11e4e4d8f546c34e05174a3aac2309265 Mon Sep 17 00:00:00 2001 From: Hideo Hattori Date: Fri, 5 Mar 2021 10:34:40 +0900 Subject: [PATCH] add: Nujucks language --- language.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/language.go b/language.go index 5753bcf..b7f367a 100644 --- a/language.go +++ b/language.go @@ -186,6 +186,7 @@ var Exts = map[string]string{ "m4": "M4", "l": "lex", "nim": "Nim", + "njk": "Nujucks", "php": "PHP", "pas": "Pascal", "PL": "Perl", @@ -512,6 +513,7 @@ func NewDefinedLanguages() *DefinedLanguages { "Mustache": NewLanguage("Mustache", []string{}, [][]string{{"{{!", "}}"}}), "M4": NewLanguage("M4", []string{"#"}, [][]string{{"", ""}}), "Nim": NewLanguage("Nim", []string{"#"}, [][]string{{"#[", "]#"}}), + "Nunjucks": NewLanguage("Nunjucks", []string{"{#"}, [][]string{{"{#", "#}"}, {""}}), "lex": NewLanguage("lex", []string{}, [][]string{{"/*", "*/"}}), "PHP": NewLanguage("PHP", []string{"#", "//"}, [][]string{{"/*", "*/"}}), "Pascal": NewLanguage("Pascal", []string{"//"}, [][]string{{"{", ")"}}),