Skip to content

Commit

Permalink
Add BQN support (#1151)
Browse files Browse the repository at this point in the history
  • Loading branch information
slotThe authored Sep 30, 2024
1 parent 320d1d2 commit 3688ee5
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,7 @@ Bazel
Bean
Bicep
Bitbake
BQN
BrightScript
C
Cabal
Expand Down
6 changes: 6 additions & 0 deletions languages.json
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,12 @@
"quotes": [["\\\"", "\\\""], ["'", "'"]],
"extensions": ["bb", "bbclass", "bbappend", "inc", "conf"]
},
"Bqn": {
"name": "BQN",
"line_comment": ["#"],
"extensions": ["bqn"],
"quotes": [["\\\"", "\\\""], ["'", "'"]],
},
"BrightScript": {
"quotes": [["\\\"", "\\\""]],
"line_comment": ["'", "REM"],
Expand Down
10 changes: 10 additions & 0 deletions tests/data/bqn.bqn
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# 10 lines 3 code 3 comments 4 blanks


256=28

# Comment
<'a'/"Big Questions Notation"

# A magic square of length ⊢
MS ← (↕-⌈÷2)(⊣⌽˘⍉⌽˘)˜↕ט

0 comments on commit 3688ee5

Please sign in to comment.