diff --git a/README.md b/README.md index 9029c26d6..caed9db39 100644 --- a/README.md +++ b/README.md @@ -350,6 +350,7 @@ Bazel Bean Bicep Bitbake +BQN BrightScript C Cabal diff --git a/languages.json b/languages.json index e429a764d..e6d475a4d 100644 --- a/languages.json +++ b/languages.json @@ -169,6 +169,12 @@ "quotes": [["\\\"", "\\\""], ["'", "'"]], "extensions": ["bb", "bbclass", "bbappend", "inc", "conf"] }, + "Bqn": { + "name": "BQN", + "line_comment": ["#"], + "extensions": ["bqn"], + "quotes": [["\\\"", "\\\""], ["'", "'"]], + }, "BrightScript": { "quotes": [["\\\"", "\\\""]], "line_comment": ["'", "REM"], diff --git a/tests/data/bqn.bqn b/tests/data/bqn.bqn new file mode 100644 index 000000000..a08f2d37f --- /dev/null +++ b/tests/data/bqn.bqn @@ -0,0 +1,10 @@ +# 10 lines 3 code 3 comments 4 blanks + + +256=2⋆8 + +# Comment +<⟜'a'⊸/"Big Questions Notation" + +# A magic square of length ⊢ +MS ← (↕-⌈∘÷⟜2)(⊣⌽˘⌾⍉⌽˘)⋈˜⥊⟜↕ט