Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -468,6 +468,7 @@ MonkeyC
MoonScript
MsBuild
Mustache
Nickel
Nim
Nix
NotQuitePerl
Expand Down
10 changes: 8 additions & 2 deletions languages.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"name": "APL",
"line_comment": ["⍝"],
"extensions": ["apl", "aplf", "apls"],
"quotes": [["'", "'"]],
"quotes": [["'", "'"]]
},
"Arduino": {
"name": "Arduino C++",
Expand Down Expand Up @@ -181,7 +181,7 @@
"name": "BQN",
"line_comment": ["#"],
"extensions": ["bqn"],
"quotes": [["\\\"", "\\\""], ["'", "'"]],
"quotes": [["\\\"", "\\\""], ["'", "'"]]
},
"BrightScript": {
"quotes": [["\\\"", "\\\""]],
Expand Down Expand Up @@ -1147,6 +1147,12 @@
"quotes": [["\\\"", "\\\""]],
"extensions": ["nextflow", "nf"]
},
"Nickel": {
"line_comment": ["#"],
"quotes": [["\\\"", "\\\""]],
"verbatim_quotes": [["m%\\\"", "\\\"%"], ["-s%\\\"", "\\\"%"]],
"extensions": ["ncl"]
},
"Nim": {
"line_comment": ["#"],
"quotes": [["\\\"", "\\\""], ["\\\"\\\"\\\"", "\\\"\\\"\\\""]],
Expand Down
21 changes: 21 additions & 0 deletions tests/data/nickel.ncl
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# 21 lines 15 code 3 comments 3 blanks

# A comment
let log = m%"
if log:
print("log:", s)
"% in

{
# A list with normal strings
args = ["-c", "-v"],

derivations = nix-s%"
pkgs.writeShellApplication {
runtimeInputs = with pkgs; [ python3 ];
text = ''
%{log}
'';
};
"%,
}
Loading