Closed Ben3eeE closed 5 years ago
Do the newlines in the regex affect anything?
Yeah, it makes the names around newlines not work :bear:
What about multiline '''
strings?
Couldn't get multiline strings to work.
What about multiline
'''
strings?
I think that syntax will remove the leading whitespace from each line of the string, but there will still be a newline in there.
Requirements
Description of the Change
Scopes built in python functions as
support.function
. Textmate scoped these assupport.function.builtin.python
.https://github.com/atom/language-python/issues/286 reported that
print
is no longer scoped askeyword.other
. Textmate always scopedprint
andexec
askeyword.other
even when they were used as a function. In Python 3 these keywords were removed andprint
andexec
are built in functions.This PR fixes https://github.com/atom/language-python/issues/286 by scoping all built in functions as
support.function
.Function list taken from https://docs.python.org/3/library/functions.html
Alternate Designs
print
andexec
as a keyword to match textmateBenefits
print
andexec
as functions except when used as a keyword (python2)Applicable Issues
Fixes https://github.com/atom/language-python/issues/286
/cc: @maxbrunsfeld