Mercurial > octave
view .editorconfig @ 28147:648202bebcb0 stable
improve treatment of comments at interactive command line (bug #57924)
* lex.ll (HANDLE_EOB_OR_EOF): New macro.
(HANDLE_STRING_CONTINUATION,
<BLOCK_COMMENT_START>^{S}*{CCHAR}\{{S}*{NL},
<BLOCK_COMMENT_START>^{S}*{CCHAR}\}{S}*{NL},
<BLOCK_COMMENT_START>{ANY_EXCEPT_NL}*{NL},
<LINE_COMMENT_START>{ANY_INCLUDING_NL}):
Use HANDLE_EOB_OR_EOF to signal that we parsed a comment or need more
input when using the push lexer interface.
* oct-parse.yy (push_parser::run): Handle token value of -2 returned
from the lexer to indicate that a comment was recognized.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Mon, 09 Mar 2020 10:24:07 -0400 |
parents | 640ee0d531d0 |
children |
line wrap: on
line source
root = true [*] charset = utf-8 end_of_line = lf indent_size = 2 indent_style = space insert_final_newline = true [*.{am,mk}] indent_size = tab indent_style = tab