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