|
964450e1
|
2016-04-30T13:35:01
|
|
Apply the new greedy flag to a few languages
This patch applies the new greedy flag to a few languages and
adds the corresponding test cases.
|
|
e83dcff6
|
2015-10-06T17:18:16
|
|
Add support for arithmetic environments for the Bash language
Currently arithmetic operators are wrongly matched all over the
place. For example the dash in `ls -la` is highlighted as
a minus operator, but for Bash it is only a string. Another
example would be a simple path like this `cat 801-file.txt`. Here
`801` is wrongly highlighted as a number and `-` is highlighted as
an operator.
Bash only supports numbers and arithmetic operators inside of a so called
arithemtic environment `$((3 + 4))`. By supporting this and
limiting numbers and arithmetic operators to arithemtic
environments, a lot of wrongly highlighted stuff can be avoided.
|
|
256c3e12
|
2015-10-05T23:00:25
|
|
Fix regression in Bash strings
In a recent patch the regex for single-quoted and double-quoted
strings of the Bash language was split into two separate regexes
to prevent the highlighting of variables inside of single-quoted
strings.
This causes a bug whenever a double-quoted string apears inside a
single-quoted string, because the double-quoted string is matched
first.
'"foo"'
The same problem exists with the newly introduced Here-Documents.
This patch fixes the problem by matching Here-Documents first and
merging the regexes for single-quoted and double-quoted
strings again.
This patch also adds testcases for this, to prevent future
regressions.
|
|
71bf8e9a
|
2015-10-01T13:22:42
|
|
Add support for Here-Documents for the Bash language
This patch adds support for Here-Documents for the Bash language.
A Here-Document should be highlighted as a multiline string
and looks like this:
cat << EOF
foo bar
EOF
|
|
89b1f857
|
2015-10-01T12:21:46
|
|
Use a proper alias for the Bash-Shebang
This patch introduces a proper alias for the Bash-Shebang.
Additionally the variables are changed from the class "property"
to "variable". The tests also need to be updated.
|
|
bbf9bdf9
|
2015-08-19T00:31:11
|
|
Add tests for Bash
|