diff --git a/README.md b/README.md index 4ddafe99d..9196e7b48 100644 --- a/README.md +++ b/README.md @@ -367,6 +367,7 @@ CSharp CShell Css Cuda +CUE Cython D DAML diff --git a/languages.json b/languages.json index efdd6de45..7952354b8 100644 --- a/languages.json +++ b/languages.json @@ -299,6 +299,17 @@ "quotes": [["\\\"", "\\\""]], "extensions": ["cu"] }, + "Cue": { + "name": "CUE", + "line_comment": ["//"], + "quotes": [ + ["\\\"", "\\\""], + ["'", "'"], + ["\\\"\\\"\\\"", "\\\"\\\"\\\""] + ], + "verbatim_quotes": [["#\\\"", "\\\"#"]], + "extensions": ["cue"] + }, "Cython": { "line_comment": ["#"], "doc_quotes": [["\\\"\\\"\\\"", "\\\"\\\"\\\""], ["'''", "'''"]], diff --git a/tests/data/cue.cue b/tests/data/cue.cue new file mode 100644 index 000000000..d3c4f3e59 --- /dev/null +++ b/tests/data/cue.cue @@ -0,0 +1,12 @@ +// 12 lines 8 code 2 comments 2 blanks + +// A documentation comment +map: { + normal: "normal string" // inline comment (not counted) + + content: """ + Multi-line string + """ + raw: #"A newline is \#n written as "\n"."# + byte: '\U0001F604' +}