| Commit message (Collapse) | Author | Age | Files | Lines |
| | |
|
| | |
|
| |\ |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| |\ \ |
|
| | | | |
|
| |\ \ \ |
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
the case where the shell is running inside a virtualenv
In this case, prompts look like this:
(virtualenv-name)user@host:~$
|
| | | | | |
|
| |\ \ \ \ |
|
| | |\ \ \ \ |
|
| | | | | | | |
|
| | | |\ \ \ \ |
|
| | | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
---
pygments/lexers/other.py | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
|
| | | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
---
pygments/lexers/text.py | 20 +++++++++++---------
pygments/lexers/web.py | 14 +++++++-------
2 files changed, 18 insertions(+), 16 deletions(-)
|
| | | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
This fixes a bug that would eat all except one close paren, if this capture
group matched multiple times.
---
pygments/lexers/web.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
|
| | | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
---
pygments/lexers/text.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
|
| | | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
---
pygments/lexers/agile.py | 6 +++---
pygments/lexers/jvm.py | 16 ++++++++--------
pygments/lexers/math.py | 2 +-
pygments/lexers/other.py | 8 ++++----
pygments/lexers/text.py | 11 +++++------
5 files changed, 21 insertions(+), 22 deletions(-)
|
| | | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
---
pygments/lexers/compiled.py | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
|
| | | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
---
pygments/lexers/agile.py | 12 ++++++------
pygments/lexers/other.py | 4 ++--
pygments/lexers/text.py | 2 +-
3 files changed, 9 insertions(+), 9 deletions(-)
|
| | | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
Lines that have leading whitespace should now match correctly.
---
pygments/lexers/hdl.py | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
|
| | | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
---
pygments/lexers/web.py | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
|
| | | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
---
pygments/lexers/math.py | 2 +-
pygments/lexers/web.py | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
|
| | | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
---
pygments/lexers/other.py | 12 ++++++------
pygments/lexers/shell.py | 6 +++---
pygments/lexers/sql.py | 8 ++++----
3 files changed, 13 insertions(+), 13 deletions(-)
|
| | | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
---
pygments/lexers/functional.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
|
| | | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
---
pygments/lexers/web.py | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
|
| | | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
---
pygments/lexers/templates.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
|
| | | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
---
pygments/lexers/compiled.py | 2 +-
pygments/lexers/functional.py | 2 +-
pygments/lexers/other.py | 4 ++--
pygments/lexers/web.py | 2 +-
4 files changed, 5 insertions(+), 5 deletions(-)
|
| | | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
---
pygments/lexers/agile.py | 8 ++++----
pygments/lexers/dotnet.py | 8 ++++----
pygments/lexers/functional.py | 5 ++++-
pygments/lexers/hdl.py | 5 +++--
pygments/lexers/other.py | 2 +-
pygments/lexers/templates.py | 31 ++++++++++++++++---------------
pygments/lexers/text.py | 4 ++--
pygments/lexers/web.py | 6 +++---
8 files changed, 37 insertions(+), 32 deletions(-)
|
| | | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
---
pygments/lexers/math.py | 4 ++--
tests/examplefiles/function.mu | 1 +
2 files changed, 3 insertions(+), 2 deletions(-)
create mode 100644 tests/examplefiles/function.mu
|
| | | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
---
pygments/lexers/parsers.py | 2 +-
tests/examplefiles/antlr_throws | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
create mode 100644 tests/examplefiles/antlr_throws
|
| | | |\ \ \ \ \
| | | |_|_|/ /
| | |/| | | | |
|
| | | | |\ \ \ \ |
|
| | | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | | |
Based on a suspicion that most examplefiles only exercise a small part of the
lexers, I've written some code to find suspicious parts of regular
expressions, then gone back over those to fix them. Most of these affect
whether the regex does what it looks like it does, but none of them should
appreciably change the function of the lexer.
* a few cases which used capturing groups + bygroups incorrectly (most were
harmless, but I think one could have generated a traceback in its previous
state)
* a few cases which could match empty string, without a callback (this is
highly discouraged, because if an op doesn't consume any characters, it
might be possible to enter an empty loop). I'll revisit
individually the cases where a callback or state push is used.
* many cases with embedded newlines in non-verbose regexes
* many, many cases with reversed (else|elseif) style alternations
|
| | | |_|_|_|_|/
| |/| | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
functions
| and operators respectively.
|
| | |_|_|_|/ /
|/| | | | | |
|
| |/ / / / /
| | | | |
| | | | |
| | | | | |
When negating expressions the exclamation mark is treated as Name token.
|
| | | | | | |
|
| | | | | | |
|
| |/ / / / |
|
| | | | | |
|
| | | | | |
|
| | |_|/
|/| | |
|
| |\ \ \ |
|
| | | | | |
|
| | | | | |
|
| |/ / / |
|