aboutsummaryrefslogtreecommitdiffhomepage
path: root/lexers/LexBash.cxx
AgeCommit message (Collapse)AuthorFilesLines
2014-06-02Bug [#1605]. Fix fold matching problem caused by "<<<".Neil1-1/+10
From Kein-Hong Man.
2013-12-02Fixed a problem when lexing started at the start of a comment line so theNeil1-0/+1
previous character had not been set and was 0.
2013-11-18Bash: fix comment detection inside a wordColomban Wendling1-1/+7
A comment in bash is defined as "[...] a word beginning with # causes that word and all remaining characters on that line to be ignored". A word is defined as "a sequence of characters considered as a single unit by the shell"; and there is a set of metacharacters defined as "a character that, when unquoted, separates words. One of the following: | & ; ( ) < > space tab". In practice, "foo#bar" is one single word, not "foo" followed by a comment. Trickier, "foo\;#bar" is also a single word, but "foo;bar" are 2 words and a control character. So, fix the Bash lexer to check whether the character preceding the hash sign to be either a metacharacter or part of a word. A maybe better fix would be to understand the Bash conception of a word, and analyze those, but it would require a large rewrite.
2013-07-22Bash: Fix handling of quoted HereDoc delimitersColomban Wendling1-2/+12
2012-09-19Handle nested delimiter pairs. Feature #3569352.nyamatongwe1-7/+124
Bugs #1515556, #3008483, #3512208, #3515392. From Kein-Hong Man.
2012-09-16Fix multiple issues with Bash lexing and folding. Bug #3526563.nyamatongwe1-5/+20
From Kein-Hong Man. - fixed SCE_PL_DEFAULT constant reported by Matthew Brush - backtracks to previous line if necessary to resolve refresh issues for multiline segments (this SF bug 3526563) - properly refreshes HERE document body and code following it when HERE delimiter is changed - HERE delimiter with no ending quote is properly highlighted as an error, this did not previously work - leading spaces highlighted properly in quoted HERE delimiters - recognizes '' and "" HERE delimiters to match blank lines
2012-03-29Fixed a bug with the bash lexer's handling of singly-quoted strings. SF Bug ↵James Ribe1-2/+9
Tracker ID: 3512208
2011-01-27Dropped inclusion of PropSetSimple.h in lexers which do not use ↵nyamatongwe1-1/+0
PropSetSimple directly. Dropped declaration not needed in LexCPP.
2010-12-09Folding for Bash here documents. Feature #3118223.nyamatongwe1-0/+8
2010-10-27Fix for bug #3063822 for bash here docs starting with <<-nyamatongwe1-2/+2
2010-07-23Casts to avoid compiler warnings.nyamatongwe1-3/+3
2010-07-23Patch from Kein-Hong Man as feature #3033135nyamatongwe1-37/+183
- improved keyword highlighting with commands, compound commands, and constructs - consistent highlighting across line continuations for commands and expressions - proper highlighting of file test operators and option arguments - better highlighting within test expressions and arithmetic expressions Also fixes SF bug ticket #3027958
2010-07-13For new lexer design change includes to add new files and remove unused files.nyamatongwe1-6/+8
Normalise order of includes. Minor fixes for compatibility with new lexer design.
2010-07-13Moved lexers into lexers directory.nyamatongwe1-0/+521