Skip to content

Commit

Permalink
add tests for j programming language
Browse files Browse the repository at this point in the history
  • Loading branch information
eNascimento178 committed Jun 11, 2024
1 parent 15e3b4e commit 6ee7ac7
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 6 deletions.
13 changes: 7 additions & 6 deletions languages.json
Original file line number Diff line number Diff line change
Expand Up @@ -729,12 +729,13 @@
"J":{
"name": "J",
"line_comment": ["NB."],
"multi_line_comments": ["Note", "\n)"],
"quotes": ["'", "'"],
"verbatim_quotes": [
["{{)n", "\n}}"],
["0 : 0", "\n)"]
] ,
"multi_line_comments": ["Note ", "\\\n)"],
"quotes": [
["'", "'"],
["{{)n", "\\\n}}"],
["0 : 0", "\\\n)"],
["0 :0", "\\\n)"]
],
"extensions": ["ijs", "jproj"]
},
"Jai": {
Expand Down
27 changes: 27 additions & 0 deletions tests/data/j.ijs
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
NB. 27 lines 14 code 7 comments 6 blanks

foo=: 5 NB. uncounted comment

NB. single line comment
bar=: 'A string with ''quotes'''

ed=: 0 : 0
explicit defined string
)

ed2=: 0 :0
explicit defined string in formated code
)

dd1=: {{)n
explicit defined string using direct definitions
}}

Note Some
multi
line
comment
)
dd2=: {{)n
if the `}}` is not in the first column
}}

0 comments on commit 6ee7ac7

Please sign in to comment.