From d4a1814758f4663a1ed1fbe87221fc818afe2d46 Mon Sep 17 00:00:00 2001 From: petrisch Date: Thu, 20 Apr 2023 11:39:16 +0200 Subject: [PATCH] Add HiCAD to languages.json (#985) Co-authored-by: patrick.joerg --- languages.json | 5 +++++ tests/data/hicad.mac | 10 ++++++++++ 2 files changed, 15 insertions(+) create mode 100644 tests/data/hicad.mac diff --git a/languages.json b/languages.json index 83063fe5f..d9cbab608 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 000000000..95f607703 --- /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