Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1)

Delta Between Two Patch Sets: Misc/Vim/python.vim

Issue 15550: Trailing white spaces
Left Patch Set: Created 7 years, 8 months ago
Right Patch Set: Created 7 years, 8 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Right: Side by side diff | Download
« no previous file with change/comment | « Misc/RPM/python-3.3.spec ('k') | Misc/Vim/vimrc » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
(no file at all)
1 " Auto-generated Vim syntax file for Python (trunk: r60376M). 1 " Auto-generated Vim syntax file for Python (trunk: r60376M).
2 " 2 "
3 " To use: copy or symlink to ~/.vim/syntax/python.vim 3 " To use: copy or symlink to ~/.vim/syntax/python.vim
4 4
5 5
6 if exists("b:current_syntax") 6 if exists("b:current_syntax")
7 finish 7 finish
8 endif 8 endif
9 9
10 if exists("python_highlight_all") 10 if exists("python_highlight_all")
(...skipping 20 matching lines...) Expand all
31 syn keyword pythonPreCondit import from 31 syn keyword pythonPreCondit import from
32 32
33 syn match pythonComment "#.*$" contains=pythonTodo 33 syn match pythonComment "#.*$" contains=pythonTodo
34 34
35 syn keyword pythonTodo TODO FIXME XXX contained 35 syn keyword pythonTodo TODO FIXME XXX contained
36 36
37 syn region pythonString matchgroup=Normal start=+[uU]\='+ end=+'+ skip=+\\\\\ |\\'+ contains=pythonEscape 37 syn region pythonString matchgroup=Normal start=+[uU]\='+ end=+'+ skip=+\\\\\ |\\'+ contains=pythonEscape
38 syn region pythonString matchgroup=Normal start=+[uU]\="+ end=+"+ skip=+\\\\\ |\\"+ contains=pythonEscape 38 syn region pythonString matchgroup=Normal start=+[uU]\="+ end=+"+ skip=+\\\\\ |\\"+ contains=pythonEscape
39 syn region pythonString matchgroup=Normal start=+[uU]\="""+ end=+"""+ contai ns=pythonEscape 39 syn region pythonString matchgroup=Normal start=+[uU]\="""+ end=+"""+ contai ns=pythonEscape
40 syn region pythonString matchgroup=Normal start=+[uU]\='''+ end=+'''+ contai ns=pythonEscape 40 syn region pythonString matchgroup=Normal start=+[uU]\='''+ end=+'''+ contai ns=pythonEscape
41 syn region pythonString matchgroup=Normal start=+[uU]\=[rR]'+ end=+'+ skip=+\ \\\\|\\'+ 41 syn region pythonString matchgroup=Normal start=+[uU]\=[rR]'+ end=+'+ skip=+\ \\\\|\\'+
42 syn region pythonString matchgroup=Normal start=+[uU]\=[rR]"+ end=+"+ skip=+\ \\\\|\\"+ 42 syn region pythonString matchgroup=Normal start=+[uU]\=[rR]"+ end=+"+ skip=+\ \\\\|\\"+
43 syn region pythonString matchgroup=Normal start=+[uU]\=[rR]"""+ end=+"""+ 43 syn region pythonString matchgroup=Normal start=+[uU]\=[rR]"""+ end=+"""+
44 syn region pythonString matchgroup=Normal start=+[uU]\=[rR]'''+ end=+'''+ 44 syn region pythonString matchgroup=Normal start=+[uU]\=[rR]'''+ end=+'''+
45 45
46 syn match pythonEscape +\\[abfnrtv\'"\\]+ contained 46 syn match pythonEscape +\\[abfnrtv\'"\\]+ contained
47 syn match pythonEscape "\\\o\{1,3}" contained 47 syn match pythonEscape "\\\o\{1,3}" contained
48 syn match pythonEscape "\\x\x\{2}" contained 48 syn match pythonEscape "\\x\x\{2}" contained
49 syn match pythonEscape "\(\\u\x\{4}\|\\U\x\{8}\)" contained 49 syn match pythonEscape "\(\\u\x\{4}\|\\U\x\{8}\)" contained
50 50
51 syn match pythonEscape "\\$" 51 syn match pythonEscape "\\$"
52 52
53 53
54 if exists("python_highlight_numbers") 54 if exists("python_highlight_numbers")
(...skipping 11 matching lines...) Expand all
66 syn keyword pythonBuiltin __import__ abs all any bool 66 syn keyword pythonBuiltin __import__ abs all any bool
67 syn keyword pythonBuiltin buffer callable chr classmethod cmp 67 syn keyword pythonBuiltin buffer callable chr classmethod cmp
68 syn keyword pythonBuiltin complex copyright credits delattr dict 68 syn keyword pythonBuiltin complex copyright credits delattr dict
69 syn keyword pythonBuiltin dir divmod enumerate eval exec exit 69 syn keyword pythonBuiltin dir divmod enumerate eval exec exit
70 syn keyword pythonBuiltin filter float frozenset getattr globals hasattr 70 syn keyword pythonBuiltin filter float frozenset getattr globals hasattr
71 syn keyword pythonBuiltin hash help hex id int isinstance 71 syn keyword pythonBuiltin hash help hex id int isinstance
72 syn keyword pythonBuiltin issubclass iter len license list locals map 72 syn keyword pythonBuiltin issubclass iter len license list locals map
73 syn keyword pythonBuiltin max min object oct open ord pow property quit 73 syn keyword pythonBuiltin max min object oct open ord pow property quit
74 syn keyword pythonBuiltin range reload repr reversed round 74 syn keyword pythonBuiltin range reload repr reversed round
75 syn keyword pythonBuiltin set setattr slice sorted staticmethod str sum 75 syn keyword pythonBuiltin set setattr slice sorted staticmethod str sum
76 syn keyword pythonBuiltin super trunc tuple type unicode vars 76 syn keyword pythonBuiltin super trunc tuple type unicode vars
77 syn keyword pythonBuiltin zip 77 syn keyword pythonBuiltin zip
78 78
79 endif 79 endif
80 80
81 81
82 if exists("python_highlight_exceptions") 82 if exists("python_highlight_exceptions")
83 syn keyword pythonException ArithmeticError AssertionError AttributeError 83 syn keyword pythonException ArithmeticError AssertionError AttributeError
84 syn keyword pythonException BaseException DeprecationWarning EOFError 84 syn keyword pythonException BaseException DeprecationWarning EOFError
85 syn keyword pythonException EnvironmentError Exception FloatingPointError 85 syn keyword pythonException EnvironmentError Exception FloatingPointError
86 syn keyword pythonException FutureWarning GeneratorExit IOError ImportError 86 syn keyword pythonException FutureWarning GeneratorExit IOError ImportError
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 139
140 140
141 " Uncomment the 'minlines' statement line and comment out the 'maxlines' 141 " Uncomment the 'minlines' statement line and comment out the 'maxlines'
142 " statement line; changes behaviour to look at least 2000 lines previously for 142 " statement line; changes behaviour to look at least 2000 lines previously for
143 " syntax matches instead of at most 200 lines 143 " syntax matches instead of at most 200 lines
144 syn sync match pythonSync grouphere NONE "):$" 144 syn sync match pythonSync grouphere NONE "):$"
145 syn sync maxlines=200 145 syn sync maxlines=200
146 "syn sync minlines=2000 146 "syn sync minlines=2000
147 147
148 let b:current_syntax = "python" 148 let b:current_syntax = "python"
LEFTRIGHT

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+