Skip to content

Commit

Permalink
add wren support (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
glennj authored Nov 3, 2023
1 parent d7ec161 commit f4c6b10
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -541,6 +541,7 @@ VisualStudioSolution
Vue
WebAssembly
Wolfram
Wren
Xaml
XcodeConfig
Xml
Expand Down
7 changes: 7 additions & 0 deletions languages.json
Original file line number Diff line number Diff line change
Expand Up @@ -1655,6 +1655,13 @@
"multi_line_comments": [["(*", "*)"]],
"extensions": ["nb", "wl"]
},
"Wren": {
"line_comment": ["//"],
"multi_line_comments": [["/*", "*/"]],
"nested": true,
"quotes": [["\\\"", "\\\""]],
"extensions": ["wren"]
},
"Xaml": {
"name": "XAML",
"multi_line_comments": [["<!--", "-->"]],
Expand Down
17 changes: 17 additions & 0 deletions tests/data/wren.wren
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// 17 lines 7 code 6 comments 4 blanks

/* multiline comments
/* can be nested */
* Right, tokei?
*/

// here's a single line comment
var PREFIX = "Hello, " // line ending comment

class Hello {
static hello(name) {
System.print(PREFIX + name + "!")
}
}

Hello.hello("World")

0 comments on commit f4c6b10

Please sign in to comment.