Add support for CUE (#1049)

This commit is contained in:
Hoang Nguyen 2024-08-16 11:58:31 +00:00 committed by GitHub
parent ba8017bad0
commit 079e4c2cfa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 24 additions and 0 deletions

View File

@ -372,6 +372,7 @@ CSharp
CShell
Css
Cuda
CUE
Cython
D
DAML

View File

@ -330,6 +330,17 @@
"quotes": [["\\\"", "\\\""]],
"extensions": ["cu"]
},
"Cue": {
"name": "CUE",
"line_comment": ["//"],
"quotes": [
["\\\"", "\\\""],
["'", "'"],
["\\\"\\\"\\\"", "\\\"\\\"\\\""]
],
"verbatim_quotes": [["#\\\"", "\\\"#"]],
"extensions": ["cue"]
},
"Cython": {
"line_comment": ["#"],
"doc_quotes": [["\\\"\\\"\\\"", "\\\"\\\"\\\""], ["'''", "'''"]],

12
tests/data/cue.cue Normal file
View File

@ -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'
}