| 01c66110 | 16-Jul-2018 |
Piotr Pawel Stefaniak <[email protected]> |
indent(1): rewrite the integer/floating constant scanning part of lexi.c
Remove procedural code that did the scanning, which was faulty and didn't support complex constants such as 0x1p-61. Replace
indent(1): rewrite the integer/floating constant scanning part of lexi.c
Remove procedural code that did the scanning, which was faulty and didn't support complex constants such as 0x1p-61. Replace it with a finite state machine expressed as a transition table. The table was rewritten by hand from lx's output, given parts of grammar expressed as regular expressions.
lx is Katherine Flavel's lexer generator, currently available at https://github.com/katef/libfsm and the parts of grammar were taken from http://quut.com/c/ANSI-C-grammar-l-2011.html and extended to support binary integer constants which are a popular GCC extension.
Reported by: bde
show more ...
|
| d0f86f66 | 04-Jun-2018 |
Piotr Pawel Stefaniak <[email protected]> |
indent(1): add --version option
There exist multi-platform programs that check indent's version in order to know what they can expect from it. GNU indent provides that via --version, so implement th
indent(1): add --version option
There exist multi-platform programs that check indent's version in order to know what they can expect from it. GNU indent provides that via --version, so implement the same option here.
show more ...
|
| aac30b75 | 03-Jun-2018 |
Piotr Pawel Stefaniak <[email protected]> |
indent(1): new option -lpl
With -lpl, code surrounded by parentheses in continuation lines is lined up even if it would extend past the right margin.
With -nlpl (the default), such a line that woul
indent(1): new option -lpl
With -lpl, code surrounded by parentheses in continuation lines is lined up even if it would extend past the right margin.
With -nlpl (the default), such a line that would extend past the right margin is moved left to keep it within the margin, if that does not require placing it to the left of the prevailing indentation level.
These switches have no effect if -nlp is selected.
Submitted by: Tom Lane
show more ...
|
| 971e1c47 | 03-Jun-2018 |
Piotr Pawel Stefaniak <[email protected]> |
indent(1): new option -lpl (always line up to parenthesis)
With -lp, if a line has an opening paren which is not closed on that line, then continuation lines will be lined up to start at the charact
indent(1): new option -lpl (always line up to parenthesis)
With -lp, if a line has an opening paren which is not closed on that line, then continuation lines will be lined up to start at the character position just after the opening paren.
Submitted by: Tom Lane
show more ...
|