aboutsummaryrefslogtreecommitdiffhomepage
path: root/parse_util.cpp
Commit message (Collapse)AuthorAge
* Fixed various Undefined Behavior occurrences.Gravatar Daniel J. Hofmann2014-03-07
| | | | | | | | | | | | | | | | | Conditionally uninitialized: - builtin_commandline.cpp:577 - expand.cpp:869 - parse_util.cpp:1036 Initialization of POD structs: - event.cpp:61 - autoload.cpp:22 References used with va_start: - common.cpp:608:18 Found with clang-3.4's awesome -Wconditional-uninitialized, -Wmissing-field-initializers and -Wvarargs.
* Support for error detection in arguments in new parser. Restores errorGravatar ridiculousfish2014-03-04
| | | | reporting for bad arguments (e.g. with bad variable names)
* Revert "Merge pull request #1317 from pullreq/cpp"Gravatar ridiculousfish2014-02-28
| | | | | | | This reverts commit 74135c0600d5dcc40d396d0e7293c17b8d4bdaa7, reversing changes made to 6d749789ce240a3e6f1447777db63fd8e7525560. See discussion in #1317
* Fixes .c -> .cpp in comments. For doxygen.Gravatar Geoff Nixon2014-02-27
|
* Reimplement exec parsing. Instead of special-casing exec as a command,Gravatar ridiculousfish2014-02-13
| | | | | | promote it to a decoration (like 'command' or 'builtin'). This makes tab completion and syntax highlighting treat exec's first argument as a command and is otherwise a nice simplification. Fixes #1300
* Highlight the entire variable name, not just the dollar sign. Fixes #1201Gravatar ridiculousfish2014-02-03
|
* Update style and formatting to conform to fish style guide.Gravatar ridiculousfish2014-01-15
|
* Fix for issue where unterminated quotes would attempt to be executed,Gravatar ridiculousfish2014-01-14
| | | | instead of continuing edit onto the next line.
* Correctly report errors for 'and' and 'or' in pipelines with new parserGravatar ridiculousfish2014-01-13
|
* Improve the 'This command can not be used in a pipeline' message toGravatar ridiculousfish2014-01-13
| | | | actually name the command
* Eliminate class parse_tGravatar ridiculousfish2014-01-12
|
* Hook up for statements, if statements, and function definition in newGravatar ridiculousfish2013-12-27
| | | | parser
* Clean up some error messages. Don't show the line in the error messageGravatar ridiculousfish2013-12-16
| | | | if it's the first line and we're interactive, since then it's obvious
* Initial work on backtrace support with new parserGravatar ridiculousfish2013-12-15
|
* Better support for parse errors in indentingGravatar ridiculousfish2013-12-08
|
* Rewriting indenting functionality to use new parserGravatar ridiculousfish2013-12-08
|
* Merge branch 'master' into astGravatar ridiculousfish2013-10-27
|\ | | | | | | | | Conflicts: complete.cpp
| * Fix formattingGravatar ridiculousfish2013-10-26
| |
* | Merge branch 'master' into astGravatar ridiculousfish2013-10-16
|\| | | | | | | | | Conflicts: parse_util.cpp
| * Fix for buffer overflows identified by libgmallocGravatar ridiculousfish2013-10-16
| |
* | Syntax highlighting for command substitutionsGravatar ridiculousfish2013-10-08
| |
* | Merge branch 'master' into ast_no_templatesGravatar ridiculousfish2013-10-06
|\| | | | | | | | | | | Conflicts: configure.ac exec.cpp
| * Make tok_last_type return an enum token_type instead of intGravatar ridiculousfish2013-09-30
| |
| * Fix for parse_util_token_extent doing the wrong thing inside a commandGravatar ridiculousfish2013-09-21
| | | | | | | | substitution. Fixes https://github.com/fish-shell/fish-shell/issues/833
* | Improvements to new parser. All functions and completions now parse.Gravatar ridiculousfish2013-07-22
|/
* Next stab at abbreviations. Highlighting should work.Gravatar ridiculousfish2013-07-19
|
* Make parse_util_locate_cmdsubst return the innermost command substitution ↵Gravatar ridiculousfish2013-07-17
| | | | | | instead of the outermost. Fixes https://github.com/fish-shell/fish-shell/issues/913
* More cleanup based on static analysisGravatar ridiculousfish2013-02-16
| | | | https://github.com/fish-shell/fish-shell/issues/575
* Remove tok_destroyGravatar ridiculousfish2012-11-21
|
* Work towards refactoring tokenizer to be a real objectGravatar ridiculousfish2012-11-21
|
* Fix indentation of switch statementsGravatar ridiculousfish2012-11-19
|
* Apply new indentation, brace, and whitespace styleGravatar ridiculousfish2012-11-18
|
* Remove trailing whitespaces and change tabs to spacesGravatar Łukasz Niemier2012-11-18
|
* Additional warnings cleanup, effective C++ violations, dead code removalGravatar ridiculousfish2012-08-05
|
* Fix for inability to go backwards through historyGravatar ridiculousfish2012-08-04
|
* Cleaned up lots of typecasts, simplified some string handlingGravatar ridiculousfish2012-08-04
|
* Additional warning fixes and migration from int to size_t or long where ↵Gravatar ridiculousfish2012-08-04
| | | | appropriate
* Lots of work towards making fish build without warnings on Mountain Lion, ↵Gravatar ridiculousfish2012-08-04
| | | | mostly in terms of using size_t instead of int
* Warning cleanupGravatar ridiculousfish2012-08-04
|
* Untangle unescaping responsibilities in highlight.cpp. Fix cd ↵Gravatar ridiculousfish2012-07-06
| | | | | | autosuggestions to properly handle quotes. Factor out some of the quote unescaping behavior from reader.cpp to parse_util.cpp. Add some autosuggestion tests
* Return the previous logic for '\\'.Gravatar maxfl2012-07-05
| | | | | | | | | | | | | | | | | | | | | | | | | | | The following expression now works: ```sh switch '\\' case '\\' echo 1 end ``` Due to ambiguity, the following expression also works: ```sh switch '\a' case '\\a' echo 1 end ``` By the way, the following expression now doesn't work, which was not the case before, because of wrong escaping: ```sh switch 'nn' case '\n' echo 1 end ```
* Fixed case behaviourGravatar maxfl2012-07-05
| | | | | | | | | | | | | | | | | | | | | * case no properly handles -h and --help flags, i.e. treats it as pattern * fixed case escaping: The following expressions now work correctly: switch '*' echo '*' echo Match any string end switch '*' echo '\*' echo Match asterix end switch '\\' echo '\\\\' echo Match slash end The same for '?' sign
* Fix for crash while editing multiple lines requested in issue #143Gravatar Siteshwar Vashisht2012-06-21
|
* Fix lots of bugs related to the static analyzerGravatar ridiculousfish2012-03-26
| | | | Improved how screen.cpp interacts with output_set_writer()
* Removed a lot of string_buffer_tGravatar ridiculousfish2012-02-22
|
* Fix a crash when using quotes due to wgettext thread safety issues.Gravatar ridiculousfish2012-02-17
|
* Final removal of halloc. It's like Christmas Morning.Gravatar ridiculousfish2012-02-09
|
* Const correctness changesGravatar ridiculousfish2012-02-06
|
* A bunch of work to move towards a sane memory model in job_tGravatar ridiculousfish2012-01-29
|
* Move autoload class into autoload.h and cppGravatar ridiculousfish2012-01-25
|