tests/languages/bash/arithmetic_environment_feature.test


Log

Author Commit Date CI Message
Alice M 363281b3 2019-06-10T13:29:03 Bash improvements (#1443) A bunch for improvements for Bash.
Andreas Rohner 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.