Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
31d6023
separate pythonClassName from pythonFunction
koka831 Jul 8, 2017
89881c3
remove regex for pythonClassName
koka831 Jul 31, 2017
ac576c5
modify regex for pythonClassName
koka831 Jul 31, 2017
28776a5
use :upper:
koka831 Jul 31, 2017
71b4ecc
fix regex
koka831 Jul 31, 2017
aa9d431
fix
koka831 Jul 31, 2017
ed4966c
use :upper:
koka831 Jul 31, 2017
b412bd0
fix regexp: recog :upper:
koka831 Jul 31, 2017
4d8ecd6
hightlight class variables inside f-strings
richin13 Feb 23, 2019
8e76189
test change
richin13 Feb 23, 2019
83ae752
move {{ and }} matching so that it gets highlighted correctly
lilydjwg Jul 27, 2017
bb4a0b2
Fix raw f-string interpolation
nfnty Aug 4, 2017
5024a66
Remove highlight link from `pythonDot` to `Normal`
nfnty Jan 9, 2019
8892101
Add `pythonNone` to `pythonExpression`
cdonovick Dec 18, 2018
13efe6f
Split builtin objects / types
cdonovick Dec 18, 2018
cbcfd09
Add builtin function `breakpoint`
nfnty Jan 9, 2019
965aa0b
Fix `PendingDeprecationWarning` typo
nfnty Jan 9, 2019
e588125
Fix parsing floats with no number trailing the `.`
nfnty Jan 9, 2019
fd7a886
hightlight class variables inside f-strings
richin13 Feb 23, 2019
583466d
test change
richin13 Feb 23, 2019
81962c1
Merge pull request #1 from richin13/class-patch1
richin13 Oct 13, 2019
3e46cc7
Fix typo
richin13 Oct 13, 2019
ab5aada
Simplify async-related keywords syntax
richin13 Oct 13, 2019
42f36c7
Ignore non-special text inside f-strings
richin13 Oct 13, 2019
ad4f72b
Link pythonClassVar to Special
richin13 Oct 13, 2019
b6c642b
Add more test cases
richin13 Oct 13, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix parsing floats with no number trailing the .
Fixes #41
  • Loading branch information
nfnty authored and richin13 committed Feb 24, 2019
commit e588125531b42e4360f3e5fbaa2d00280750e612
2 changes: 1 addition & 1 deletion syntax/python.vim
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ else

syn match pythonFloat '\.\d\%([_0-9]*\d\)\=\%([eE][+-]\=\d\%([_0-9]*\d\)\=\)\=[jJ]\=\>' display
syn match pythonFloat '\<\d\%([_0-9]*\d\)\=[eE][+-]\=\d\%([_0-9]*\d\)\=[jJ]\=\>' display
syn match pythonFloat '\<\d\%([_0-9]*\d\)\=\.\d\%([_0-9]*\d\)\=\%([eE][+-]\=\d\%([_0-9]*\d\)\=\)\=[jJ]\=' display
syn match pythonFloat '\<\d\%([_0-9]*\d\)\=\.\d\=\%([_0-9]*\d\)\=\%([eE][+-]\=\d\%([_0-9]*\d\)\=\)\=[jJ]\=' display
endif

"
Expand Down
2 changes: 1 addition & 1 deletion tests/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ async def Test

# Numbers

0 1 2 9 10 0x1f .3 12.34 0j 124j 34.2E-3 0b10 0o77 1023434 0x0
0 1 2 9 10 0x1f 1. .3 12.34 0j 124j 34.2E-3 0b10 0o77 1023434 0x0
1_1 1_1.2_2 1_2j 0x_1f 0x1_f 34_56e-3 34_56e+3_1 0o7_7

# Erroneous numbers
Expand Down