ridiculousfish
a42711e31c
Support for break/continue with new parser execution
2013-12-28 22:52:06 -08:00
ridiculousfish
c632307eaa
Make eval_node_at_offset return an error indication instead of the exit
...
status of the last command
2013-12-28 16:33:26 -08:00
ridiculousfish
0f9de11a67
Fix issues related to redirections and block level IO with new parser
2013-12-28 16:18:38 -08:00
ridiculousfish
715823a666
Bringup of function definitions, switch statements with new parser
2013-12-27 03:58:42 -08:00
ridiculousfish
6ce4b344e4
Hook up for statements, if statements, and function definition in new
...
parser
2013-12-27 01:38:43 -08:00
ridiculousfish
a6ca809a4e
Fix for issue where last job_list in tree would have a -1 production_idx
...
because we never actually sent the terminal token type
2013-12-26 14:52:15 -08:00
ridiculousfish
c1a13ae8bc
Fix a few errors identified by testing new parser
2013-12-26 13:36:43 -08:00
ridiculousfish
6536ffe178
Facilities for turning on new AST-based parser.
2013-12-26 13:24:10 -08:00
ridiculousfish
562946d055
Cleanup thrashing around in parser_t. New parser execution lives in
...
parse_execution.cpp
2013-12-26 12:55:10 -08:00
ridiculousfish
924b8cbe24
New ideas about how to use new parser for execution. Beginnings of
...
implementation.
2013-12-26 12:24:00 -08:00
ridiculousfish
5b1a532652
Factor execution aspects from parser_t to parse_execution_context_t .
...
Still searching for best way to use new parser for execution.
2013-12-24 13:17:24 -08:00
ridiculousfish
b6af3e51ab
Very early work in adopting new parser for actual execution of commands.
...
Not turned on yet.
2013-12-23 14:53:56 -08:00
ridiculousfish
ebc8bd6ff5
Update the backtrace call to pass a block index instead of a block,
...
fixing the build
2013-12-20 17:47:07 -08:00
ridiculousfish
ed70195c7e
Merge branch 'master' into ast
...
Conflicts:
function.cpp
parser.cpp
parser.h
2013-12-20 17:44:37 -08:00
ridiculousfish
e38217683c
Refactor block_t storage in parser_t from a linked list to a vector
2013-12-20 17:41:21 -08:00
ridiculousfish
739e529416
Initial flailing around trying to adopt new parser for actual execution
2013-12-20 14:37:40 -08:00
Javier Gonel
12be83562d
Non standard cut options
...
Some cut versions don't have `--delimiter` or `--fields` but use the standard options `-d` and `-f`
2013-12-18 18:02:19 +02:00
Mandeep Sandhu
8bcb5e4ed7
Ignore auto-generated file command_list_toc.txt
...
Added this file to the ignore list (Issue #1192 ).
2013-12-18 16:59:37 +05:30
Konrad Borowski
5c96bca1ca
Revert "Ensure that UTF-8 works if LANG contains it."
...
This was a really stupid change that I should have tested more
before pushing. It broke any non-interactive usage, such as SSH,
fish config, or parsing the script output, as config.fish is
loaded for everything.
There are no issues with different terminal emulators, so this
change will be pushed in the future, but only running in interactive
mode. I apologize for any issues caused by this commit.
This reverts commit d61adfbc53
.
2013-12-17 20:47:14 +01:00
ridiculousfish
384987cd5b
Remove detect_errors2
2013-12-16 22:32:08 -08:00
ridiculousfish
af21dfd294
Make the tests compile again
2013-12-16 17:18:32 -08:00
ridiculousfish
3e9153d955
Clean up some error messages. Don't show the line in the error message
...
if it's the first line and we're interactive, since then it's obvious
2013-12-16 16:52:23 -08:00
ridiculousfish
0e421ea31d
Various cleanup and tweaking of backtrace messages
2013-12-16 15:33:20 -08:00
ridiculousfish
471f7f06f7
Fix for a busted assertion
2013-12-15 16:44:05 -08:00
ridiculousfish
ddb37a47da
Stop using realpath() in builtin_source, so as to preserve relative path
...
reporting in backtraces
2013-12-15 16:43:22 -08:00
ridiculousfish
5b24aac266
Initial work on backtrace support with new parser
2013-12-15 16:05:37 -08:00
Konrad Borowski
d61adfbc53
Ensure that UTF-8 works if LANG contains it.
...
Some people like to have their terminals claim UTF-8 support when
their terminals actually are set to another encoding. As nobody
appears to understand this, I have made a change to automatically
fix the encoding problems if possible. This uses ISO 2022 sequences
in order to dynamically change the encoding.
Fixes #692 . Fixes #895 . Fixes possible future issues about this.
2013-12-15 11:08:15 +01:00
Konrad Borowski
602f040940
Update Free Software Foundation address.
...
Fixes #1184 .
2013-12-13 21:51:52 +01:00
ridiculousfish
5cf59de676
Finish rewriting detect_errors to use new parser. All tests now pass (!)
2013-12-12 18:18:07 -08:00
ridiculousfish
e25d49b80b
Make builtin_parse output to stdout
2013-12-12 18:17:30 -08:00
ridiculousfish
d5d9b9284a
Initial work towards rewriting detect_errors to use new parser.
...
Low-level tests currently pass; high level tests fail.
2013-12-11 18:34:28 -08:00
Thomas Cort
0ec97c5d1e
doc_src/eval.txt: fix typo.
...
'folloing' => 'following'
2013-12-10 19:09:32 +01:00
Jay Weisskopf
9bbda857c3
Prepend user paths even if they already exist in system path
...
Fixes #1099
2013-12-10 12:52:04 -05:00
ridiculousfish
383b6aabf5
Improve error reporting in new parser. Tests now pass.
2013-12-08 22:29:02 -08:00
ridiculousfish
7a3f5afee7
Initial work towars improved error reporting. Tests currently fail.
2013-12-08 21:54:06 -08:00
ridiculousfish
5769fa6aed
Fix for off-by-one error in tokenizer error message reporting
2013-12-08 18:16:55 -08:00
ridiculousfish
925fe65dd8
Remove the indentation part of parser_t::test(). Rename it to
...
detect_errors().
2013-12-08 16:25:07 -08:00
ridiculousfish
67b1f14a6f
Better support for parse errors in indenting
2013-12-08 14:13:23 -08:00
ridiculousfish
dd0cc5ed9f
Rewriting indenting functionality to use new parser
2013-12-08 13:41:12 -08:00
ridiculousfish
a23441109d
Merge branch 'master' into ast
...
Conflicts:
complete.cpp
fish_tests.cpp
highlight.cpp
2013-12-07 12:54:43 -08:00
Tom Sutcliffe
0e7acaa3c4
Added completion for Android adb command.
2013-12-05 10:43:44 +00:00
David Adam
f0946baeaa
__fish_git_prompt: initialise colors early
...
Otherwise __fish_git_prompt_informative_status tries to expand an unset
variable.
Closes #1157 .
2013-12-02 20:09:15 +08:00
David Adam
7db755dd68
Makefile.in: remove cruft
2013-12-01 18:09:50 +08:00
David Adam
2efc0bad1c
add correct version number to manpage output
2013-12-01 12:37:29 +08:00
David Adam
3978de2cde
autoconf build: clean up Makefile, remove fish.spec
...
Removes some unused variables and out-of-date references.
Wraps some tests in quotes to avoid expansion errors.
Removes the fish.spec generated file as it is out of date and is
arguably better maintained by downstream packagers.
See http://github.com/zanchey/fish-build/ for a better RPM spec file.
2013-12-01 12:37:29 +08:00
ridiculousfish
263f919beb
Replace autosuggestions "completions to load" mechanism with moderately
...
less hackish and far simpler "perform on main thread" mechanism
2013-11-29 23:44:26 -08:00
ridiculousfish
4aaa9e7d9f
Allow autosuggestions to do job expansion. Fixes
...
https://github.com/fish-shell/fish-shell/issues/1152
2013-11-29 13:34:03 -08:00
Konrad Borowski
e1608362d0
Fix s/$remote// mistake.
...
$remote could have contained /.
2013-11-29 15:26:33 +01:00
ridiculousfish
9f986d8a86
Implemented iothread_perform_on_main() to support background threads
...
scheduling work on main thread
2013-11-27 16:04:30 -08:00
Konrad Borowski
e0b78f7f2a
Disallow Unicode conversion specifications.
...
This stops fish from accessing the `bool ok[UCHAR_MAX + 1]` table
beyond allocated space potentially accessing memory that doesn't
belong to fish, and crashing.
2013-11-27 21:16:34 +01:00