Skip to content

Commit c14ebd8

Browse files
authored
Merge pull request #334 from serkonda7/bait-support
add support for bait
2 parents 664cd2c + 31b6667 commit c14ebd8

File tree

3 files changed

+55
-11
lines changed

3 files changed

+55
-11
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ scc
1717

1818
# IDE
1919
.idea/
20+
*.code-workspace
2021

2122
# Performance tests
2223
examples/performance_tests/0
@@ -35,4 +36,4 @@ gitignorefile.txt
3536

3637
# macOS
3738

38-
.DS_Store
39+
.DS_Store

LANGUAGES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ ATS (dats,sats,ats,hats)
1717
Autoconf (in)
1818
AutoHotKey (ahk)
1919
AWK (awk)
20+
bait (bait)
2021
BASH (bash,bash_login,bash_logout,bash_profile,bashrc,.bash_login,.bash_logout,.bash_profile,.bashrc)
2122
Basic (bas)
2223
Batch (bat,btm,cmd)

languages.json

Lines changed: 52 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -459,6 +459,54 @@
459459
"multi_line": [],
460460
"quotes": []
461461
},
462+
"bait": {
463+
"complexitychecks": [
464+
"for ",
465+
"if ",
466+
"else ",
467+
" or ",
468+
" and ",
469+
"!= ",
470+
"== "
471+
],
472+
"extensions": [
473+
"bait"
474+
],
475+
"keywords": [
476+
"and",
477+
"break",
478+
"const ",
479+
"continue",
480+
"else ",
481+
"fun ",
482+
"import ",
483+
"not ",
484+
"or ",
485+
"package ",
486+
"return",
487+
"struct "
488+
],
489+
"line_comment": [
490+
"//"
491+
],
492+
"multi_line": [
493+
[
494+
"/*",
495+
"*/"
496+
]
497+
],
498+
"nestedmultiline": true,
499+
"quotes": [
500+
{
501+
"end": "'",
502+
"start": "'"
503+
},
504+
{
505+
"end": "`",
506+
"start": "`"
507+
}
508+
]
509+
},
462510
"BASH": {
463511
"complexitychecks": [
464512
"for ",
@@ -5513,9 +5561,9 @@
55135561
"== "
55145562
],
55155563
"extensions": [
5516-
"sql",
5517-
"dml",
5518-
"ddl",
5564+
"sql",
5565+
"dml",
5566+
"ddl",
55195567
"dql"
55205568
],
55215569
"line_comment": [
@@ -6686,13 +6734,7 @@
66866734
"line_comment": [
66876735
"//"
66886736
],
6689-
"multi_line": [
6690-
[
6691-
"/*",
6692-
"*/"
6693-
]
6694-
],
6695-
"nestedmultiline": true,
6737+
"multi_line": [],
66966738
"quotes": [
66976739
{
66986740
"end": "\"",

0 commit comments

Comments
 (0)