From 897218678ebc5a37def38fe1377da15c4c02a95d Mon Sep 17 00:00:00 2001 From: John Gardner Date: Thu, 2 Jun 2016 02:41:22 +1000 Subject: [PATCH] Add interpreters for APL and J (#3029) * Add APL interpreters * Add J interpreter * Add test fixtures for APL/J interpreters --- lib/linguist/languages.yml | 6 ++++++ samples/APL/hashbang | 7 +++++++ samples/J/hashbang | 3 +++ 3 files changed, 16 insertions(+) create mode 100755 samples/APL/hashbang create mode 100755 samples/J/hashbang diff --git a/lib/linguist/languages.yml b/lib/linguist/languages.yml index fe99a99e..4f2c6481 100755 --- a/lib/linguist/languages.yml +++ b/lib/linguist/languages.yml @@ -75,6 +75,10 @@ APL: extensions: - .apl - .dyalog + interpreters: + - apl + - aplx + - dyalog tm_scope: source.apl ace_mode: text @@ -1666,6 +1670,8 @@ J: color: "#9EEDFF" extensions: - .ijs + interpreters: + - jconsole tm_scope: source.j ace_mode: text diff --git a/samples/APL/hashbang b/samples/APL/hashbang new file mode 100755 index 00000000..6a9b5102 --- /dev/null +++ b/samples/APL/hashbang @@ -0,0 +1,7 @@ +#!/usr/local/bin/apl --script +NEWLINE ← ⎕UCS 10 +HEADERS ← 'Content-Type: text/plain', NEWLINE +HEADERS +⍝ ⎕←HEADERS +⍝ ⍕⎕TS +)OFF diff --git a/samples/J/hashbang b/samples/J/hashbang new file mode 100755 index 00000000..6e500d97 --- /dev/null +++ b/samples/J/hashbang @@ -0,0 +1,3 @@ +#!/bin/jconsole +echo 'Hello, GitHub!' +exit ''