Skip to content

Commit

Permalink
Add support for smalltalk (#839)
Browse files Browse the repository at this point in the history
  • Loading branch information
jake-87 authored Apr 20, 2023
1 parent 8733101 commit 5acdb19
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
6 changes: 6 additions & 0 deletions languages.json
Original file line number Diff line number Diff line change
Expand Up @@ -1294,6 +1294,12 @@
"multi_line_comments": [["(*", "*)"]],
"extensions": ["sml"]
},
"Smalltalk": {
"name": "Smalltalk",
"quotes": [["'", "'"]],
"multi_line_comments": [["\\\"", "\\\""]],
"extensions": ["cs.st", "pck.st"]
},
"Solidity": {
"name": "Solidity",
"line_comment": ["//"],
Expand Down
16 changes: 16 additions & 0 deletions tests/data/Smalltalk.cs.st
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
"16 lines 9 code 5 comment 2 blank"

exampleWithNumber: x
| y |
"this is a comment"
true & false not & (nil isNil) ifFalse: [self halt].
y := self size + super size.
#($a #a 'a' 1 1.0)
do: [ :each |

"This is
a multiline
comment"
Transcript show: (each class name);
show: ' '].
^x < y

0 comments on commit 5acdb19

Please sign in to comment.