summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpetrisch <patrickjoerg@gmx.ch>2023-04-20 11:39:16 +0200
committerGitHub <noreply@github.com>2023-04-20 11:39:16 +0200
commitd4a1814758f4663a1ed1fbe87221fc818afe2d46 (patch)
tree88376d9b8029a4c85334c850160ebd44fd74daad
parent29bdd1eff4a5f8ff173d52b69ed452e5072d3683 (diff)
Add HiCAD to languages.json (#985)
Co-authored-by: patrick.joerg <patrick.joerg@gilgends.com>
-rw-r--r--languages.json5
-rw-r--r--tests/data/hicad.mac10
2 files changed, 15 insertions, 0 deletions
diff --git a/languages.json b/languages.json
index 83063fe..d9cbab6 100644
--- a/languages.json
+++ b/languages.json
@@ -613,6 +613,11 @@
"blank": true,
"extensions": ["hex"]
},
+ "HiCad": {
+ "name": "HICAD",
+ "line_comment": ["REM", "rem"],
+ "extensions": ["MAC", "mac"]
+ },
"Hlsl": {
"name": "HLSL",
"line_comment": ["//"],
diff --git a/tests/data/hicad.mac b/tests/data/hicad.mac
new file mode 100644
index 0000000..95f6077
--- /dev/null
+++ b/tests/data/hicad.mac
@@ -0,0 +1,10 @@
+REM 10 lines 4 code 3 comments 3 blanks
+START 59
+
+REM Comment on a line
+%XY:=42
+
+rem This is also a comment
+IF FOO= "foo" GOTO 10
+
+END