Skip to content

Commit

Permalink
Add support for CUE
Browse files Browse the repository at this point in the history
  • Loading branch information
folliehiyuki committed Dec 6, 2023
1 parent e2625c0 commit 98620bc
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,7 @@ CSharp
CShell
Css
Cuda
CUE
Cython
D
DAML
Expand Down
11 changes: 11 additions & 0 deletions languages.json
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,17 @@
"quotes": [["\\\"", "\\\""]],
"extensions": ["cu"]
},
"Cue": {
"name": "CUE",
"line_comment": ["//"],
"quotes": [
["\\\"", "\\\""],
["'", "'"],
["\\\"\\\"\\\"", "\\\"\\\"\\\""]
],
"verbatim_quotes": [["#\\\"", "\\\"#"]],
"extensions": ["cue"]
},
"Cython": {
"line_comment": ["#"],
"doc_quotes": [["\\\"\\\"\\\"", "\\\"\\\"\\\""], ["'''", "'''"]],
Expand Down
12 changes: 12 additions & 0 deletions tests/data/cue.cue
Original file line number Diff line number Diff line change
@@ -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'
}

0 comments on commit 98620bc

Please sign in to comment.