aboutsummaryrefslogtreecommitdiffhomepage
path: root/lexers/LexBash.cxx
AgeCommit message (Collapse)AuthorFilesLines
2021-01-29Remove Lexilla files from ScintillaNeil1-1086/+0
2019-12-22Define ILexer5 with methods for retrieving name, ID, and property values.Neil1-3/+6
Implement ILexer5 on object lexers. Implement ILexer5 on LexerSimple wrapper for function lexers.
2018-11-28Removed description of fold.comment as it is shared with other lexers and theNeil1-2/+1
desription from LexCPP.cxx takes precedence.
2018-11-28Bug [#2054]. Reimplemented as an object lexer to support substyles for multipleKacper Kasper1-44/+221
sets of keywords and SCI_PROPERTYNAMES.
2018-09-04Feature [feature-requests:#1144]. Add folding for shell if, do, and case.Colomban Wendling1-0/+15
Implemented by Zufu Liu and Colomban Wendling.
2017-09-11The Scintilla namespace is always active for internal symbols and for the lexerNeil1-2/+0
interfaces ILexer4 and IDocument.
2017-05-08Bug [#1944]. Recognize strings in lists in more cases.Kein-Hong Man1-2/+15
2015-12-28Bug [#1778]. Recognize more characters as here-doc delimiters.Kein-Hong Man1-7/+8
2015-12-21Bug [#1794]. Update previous change for '#' to get priority correct.Kein-Hong Man1-5/+4
2015-12-20Bug [#1794]. Support using '#' in non-comment ways as is possible with zsh.Kein-Hong Man1-0/+42
2015-12-10Flag incomplete here doc delimiters as syntax errors, matching bash 4.3.Kein-Hong Man1-16/+10
Avoid heap allocations for here delimiter and quote stack.
2015-07-30Use Sci_Position / Sci_PositionU for variables in lexers that representJoe Mueller1-10/+10
positions and line numbers and may be widened to 64-bits in a future release.
2015-07-25Use Sci_PositionU/Sci_Position for arguments to functional lexers, folders, andNeil1-2/+2
comment recognizers to allow for future implementation of 64-bit positions.
2014-12-12LexBash: Empty heredoc delimiters can also be indentedColomban Wendling1-1/+2
2014-12-12LexBash: Only tabulations are allowed as prefix with `<<-` heredocColomban Wendling1-1/+1
Only tabulations are allowed to prefix the delimiter on indented here-documents, not any white space.
2014-12-12LexBash: Don't allow spaces between `<<` and `-` in a heredoc operatorColomban Wendling1-3/+6
`<<-` is an operator of itself, not two separate tokens `<<` and `-`. This fixes handling of delimiters starting with `-`, like this: cat<< -EOF ... -EOF
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