From 973a4d4f04bc76bcbd639f0fcdcd26839418cbd2 Mon Sep 17 00:00:00 2001 From: Anthony Date: Thu, 1 Sep 2011 16:15:39 -0300 Subject: [PATCH 1/7] Add AutoHotkey definition. --- lib/linguist/languages.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/linguist/languages.yml b/lib/linguist/languages.yml index 10cc3a53..d24d9623 100644 --- a/lib/linguist/languages.yml +++ b/lib/linguist/languages.yml @@ -60,6 +60,13 @@ AppleScript: - .applescript - .scpt +AutoHotkey: + type: programming + aliases: + - ahk + extensions: + - .ahk + Arc: type: programming lexer: Text only From 37560f4f606f269214f9329303edf4c7d83a2810 Mon Sep 17 00:00:00 2001 From: Anthony Date: Thu, 1 Sep 2011 16:38:17 -0300 Subject: [PATCH 2/7] Add test for the AutoHotkey language. --- test/test_blob.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/test_blob.rb b/test/test_blob.rb index 26d116ad..88c0bd16 100644 --- a/test/test_blob.rb +++ b/test/test_blob.rb @@ -341,6 +341,9 @@ class TestBlob < Test::Unit::TestCase assert_equal Language['Groovy Server Pages'], blob("hello-resources.gsp").language assert_equal Language['Groovy Server Pages'], blob("hello-pagedirective.gsp").language assert_equal Language['Groovy Server Pages'], blob("hello-var.gsp").language + + # https://github.com/Lexikos/AutoHotkey_L + assert_equal Language['AutoHotkey'], blob("hello.ahk").language end def test_lexer From 09231805ee374b44e2085d3c5b4b47606308830f Mon Sep 17 00:00:00 2001 From: Anthony Zhang Date: Thu, 1 Sep 2011 16:30:06 -0400 Subject: [PATCH 3/7] Added test fixture for AutoHotkey language. --- test/fixtures/hello.ahk | 1 + 1 file changed, 1 insertion(+) create mode 100644 test/fixtures/hello.ahk diff --git a/test/fixtures/hello.ahk b/test/fixtures/hello.ahk new file mode 100644 index 00000000..ff963eb7 --- /dev/null +++ b/test/fixtures/hello.ahk @@ -0,0 +1 @@ +MsgBox, Hello`, World! From 1a5e7a15983a80ff244c3f639ea8ec5132f84a9d Mon Sep 17 00:00:00 2001 From: Anthony Zhang Date: Thu, 1 Sep 2011 18:06:14 -0400 Subject: [PATCH 4/7] Add "Text only" lexing, for now, until Pygments accepts the AutoHotkey lexer. --- lib/linguist/languages.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/linguist/languages.yml b/lib/linguist/languages.yml index 863acd11..ff4235e7 100644 --- a/lib/linguist/languages.yml +++ b/lib/linguist/languages.yml @@ -62,6 +62,7 @@ AppleScript: AutoHotkey: type: programming + lexer: Text only aliases: - ahk extensions: From b8d1cd9ee5183fe113e37e97cfa7c4d5450171b1 Mon Sep 17 00:00:00 2001 From: Christophe Coevoet Date: Tue, 6 Sep 2011 19:22:05 +0300 Subject: [PATCH 5/7] Added the support for Twig --- lib/linguist/languages.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/linguist/languages.yml b/lib/linguist/languages.yml index ff4235e7..b15018d3 100644 --- a/lib/linguist/languages.yml +++ b/lib/linguist/languages.yml @@ -937,6 +937,13 @@ Textile: extensions: - .textile +Twig: + type: markup + group: PHP + lexer: HTML+Django/Jinja + extensions: + - .twig + VHDL: type: programming lexer: Text only From 6ebd05958b436bd990451e5911f38250d95960fc Mon Sep 17 00:00:00 2001 From: Joshua Peek Date: Tue, 6 Sep 2011 11:22:45 -0500 Subject: [PATCH 6/7] Fix AutoHotKey sorting --- lib/linguist/languages.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/linguist/languages.yml b/lib/linguist/languages.yml index ff4235e7..e5bc56b2 100644 --- a/lib/linguist/languages.yml +++ b/lib/linguist/languages.yml @@ -60,14 +60,6 @@ AppleScript: - .applescript - .scpt -AutoHotkey: - type: programming - lexer: Text only - aliases: - - ahk - extensions: - - .ahk - Arc: type: programming lexer: Text only @@ -83,6 +75,14 @@ Assembly: extensions: - .asm +AutoHotkey: + type: programming + lexer: Text only + aliases: + - ahk + extensions: + - .ahk + Batchfile: type: programming group: Shell From 0c137c2d85bc5dfeea306e77acd6c14be67c18ec Mon Sep 17 00:00:00 2001 From: Joshua Peek Date: Tue, 6 Sep 2011 11:28:12 -0500 Subject: [PATCH 7/7] Fix AutoHotkey lexer --- lib/linguist/languages.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/linguist/languages.yml b/lib/linguist/languages.yml index 11446285..f61c6368 100644 --- a/lib/linguist/languages.yml +++ b/lib/linguist/languages.yml @@ -77,7 +77,7 @@ Assembly: AutoHotkey: type: programming - lexer: Text only + lexer: autohotkey aliases: - ahk extensions: