Skip to content

Commit

Permalink
feat: add language Tact (#1103)
Browse files Browse the repository at this point in the history
More about the language: https://tact-lang.org
Hope everything's nice here :)
  • Loading branch information
novusnota authored Aug 16, 2024
1 parent 037e229 commit 79b6a90
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -527,6 +527,7 @@ Svg
Swift
Swig
SystemVerilog
Tact
Tcl
Tex
Text
Expand Down
6 changes: 6 additions & 0 deletions languages.json
Original file line number Diff line number Diff line change
Expand Up @@ -1596,6 +1596,12 @@
"quotes": [["\\\"", "\\\""]],
"extensions": ["sv", "svh"]
},
"Tact": {
"line_comment": ["//"],
"multi_line_comments": [["/*", "*/"]],
"quotes": [["\\\"", "\\\""]],
"extensions": ["tact"]
},
"Tcl": {
"name": "TCL",
"line_comment": ["#"],
Expand Down
20 changes: 20 additions & 0 deletions tests/data/tact.tact
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
// 20 lines 12 code 4 comments 4 blanks

import "@stdlib/deploy"; // comment

/* comment */
fun global() {
let str: String = "\n \r \t \u1234 \xFF";

// comment
while (true) { // comment
if /* comment */ (true) { /* comment */ }
}
}

// "quoted"
struct St { /* " */
field1: Int; // /*
field2: Int as uint128;
field3: Int; // */
}

0 comments on commit 79b6a90

Please sign in to comment.