feat: Added C3 programming language. (#1319)

* Added C3 programming language

* Update c3.c3

* Corrected C3 test file.
This commit is contained in:
Sam Saint-Pettersen
2026-01-25 11:09:54 +01:00
committed by GitHub
parent d9cbc01496
commit 505d6481c9
3 changed files with 15 additions and 0 deletions
+1
View File
@@ -320,6 +320,7 @@ Bitbake
BQN
BrightScript
C
C3
Cabal
Cassius
Ceylon
+6
View File
@@ -207,6 +207,12 @@
"quotes": [["\\\"", "\\\""]],
"extensions": ["c", "ec", "pgc"]
},
"C3": {
"line_comment": ["//"],
"multi_line_comments": [["/*", "*/"]],
"quotes": [["\\\"", "\\\""]],
"extensions": ["c3"]
},
"Cabal": {
"nested": true,
"line_comment": ["--"],
+8
View File
@@ -0,0 +1,8 @@
/* 8 lines 6 code 1 comments 1 blanks */
fn int main() {
int x = 5; /* Multline line comment */
io::printn("Hello, world!");
int y = 4; // Single line comment.
return 0;
}