Skip to content

Commit 2649fc1

Browse files
authored
Add support for Free Pascal
1 parent 1b925ac commit 2649fc1

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

lib/grammars.coffee

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,17 @@ module.exports =
326326
"File Based":
327327
command: "bash"
328328
args: (context) -> ['-c', "gfortran '" + context.filepath + "' -ffixed-form -o /tmp/f.out && /tmp/f.out"]
329+
330+
"Free Pascal":
331+
"Selection Based":
332+
command: "fsc"
333+
args: (context) ->
334+
code = context.getCode()
335+
tmpFile = GrammarUtils.createTempFileWithCode(code)
336+
[tmpFile]
337+
"File Based":
338+
command: "fsc"
339+
args: (context) -> [context.filepath]
329340

330341
Gherkin:
331342
"File Based":

0 commit comments

Comments
 (0)