More Formatter Fixes (#672)

* Fix nodepath function highlighting/tokenization

* Reverted dangerous line removal behavior change

* Fix detection of match keyword vs .match() function

* Rearrange formatter options

* Fix option default value

* Add biome linter/formatter config file

* Fix linter errors

* Add system to supply custom config values in tests

* Remove unused variable

* Implement tests for both formatter options

* Clean up formatter option handling

* Fix extra space inserted in list of nodepaths

* Add token rules for square and curly braces
This commit is contained in:
David Kincaid
2024-06-29 13:08:24 -07:00
committed by GitHub
parent 6456a789af
commit cca25099c4
12 changed files with 164 additions and 58 deletions

View File

@@ -45,6 +45,12 @@ func f():
super()
super.some_function()
match param3:
3:
print("param3 is 3!")
_:
print("param3 is not 3!")
for i in range(1): # `in` is a control keyword
print(i in range(1)) # `in` is an operator keyword