Commit 62c02827 authored by André Simon's avatar André Simon

added new bash reference plugin

parent 0e654130
......@@ -6,6 +6,7 @@ highlight 3.38
xx.xx.2017
-updated astyle code to release 3.0.1 (https://sourceforge.net/p/astyle/bugs/438/)
-added bash_ref_man7_org.lua plugin
---
highlight 3.37
......
......@@ -23,6 +23,8 @@ Keywords={
Strings={
Delimiter=[["]],
Escape=[[\A(?!x)x]]
-- see http://stackoverflow.com/questions/1723182/a-regex-that-will-never-be-matched-by-anything
}
Comments={
......
......@@ -61,6 +61,8 @@ Comments={
Operators=[[\(|\)|\[|\]|\{|\}|\,|\;|\:|\&|<|>|\!|\=|\/|\*|\%|\+|\-]]
-- FIXME: : ${SHELL="${CONFIG_SHELL-/bin/sh}"}
function OnStateChange(oldState, newState, token)
if oldState==HL_STRING and token==hereDoc then
......@@ -71,7 +73,7 @@ function OnStateChange(oldState, newState, token)
if (string.sub(token,1,1) =="$" ) and oldState==HL_STRING and newState==HL_KEYWORD then
return HL_INTERPOLATION
end
if hereDoc~=nil then
return HL_STRING
end
......@@ -80,6 +82,6 @@ function OnStateChange(oldState, newState, token)
if oldState==HL_STANDARD and newState==HL_STRING and not string.find("\"'`", token) then
hereDoc = string.match(token, "<<%-?'?%s*([%-%a%d_]+)" )
end
return newState
end
......@@ -16,6 +16,8 @@ Keywords={
Strings={
Delimiter=[["]],
Escape=[[\A(?!x)x]]
-- see http://stackoverflow.com/questions/1723182/a-regex-that-will-never-be-matched-by-anything
}
Comments={
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment