mirror of
https://github.com/github/semantic.git
synced 2024-12-27 00:44:57 +03:00
Reuse the abstract parsers for Python.
This commit is contained in:
parent
4c282911a1
commit
0d17b9691f
@ -161,8 +161,8 @@ pythonParserPrecise' = (Python, SomeParser pythonParserPrecise)
|
||||
|
||||
pythonParser' :: (c PythonALaCarte.Term, c PythonPrecise.Term) => PerLanguageModes -> (Language, SomeParser c Loc)
|
||||
pythonParser' modes = case pythonMode modes of
|
||||
ALaCarte -> (Python, SomeParser pythonParser)
|
||||
Precise -> (Python, SomeParser pythonParserPrecise)
|
||||
ALaCarte -> pythonParserALaCarte'
|
||||
Precise -> pythonParserPrecise'
|
||||
|
||||
rubyParser' :: c Ruby.Term => (Language, SomeParser c Loc)
|
||||
rubyParser' = (Ruby, SomeParser rubyParser)
|
||||
|
Loading…
Reference in New Issue
Block a user