mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
fix(haskell): prevent segfault due to anchorless queries (#5502)
This commit is contained in:
parent
34e6ace726
commit
0eb1a0ad1c
2 changed files with 31 additions and 36 deletions
|
|
@ -111,16 +111,13 @@ someInfix x = fromIntegral x `myAdd` floatVal
|
|||
-- ^ @variable
|
||||
-- ^ @variable
|
||||
floatVal :: Double
|
||||
-- ^ @variable
|
||||
floatVal = 5.5
|
||||
-- ^ @variable
|
||||
-- ^ @float
|
||||
intVal :: Int
|
||||
-- ^ @variable
|
||||
intVal = getInt 5
|
||||
-- ^ @variable
|
||||
boolVal :: Bool
|
||||
-- ^ @variable
|
||||
boolVal = bool False True $ 1 + 2 == 3
|
||||
-- ^ @variable
|
||||
isInt :: Either Double Int -> Bool
|
||||
|
|
@ -171,12 +168,14 @@ someIOaction = do
|
|||
-- ^ @function.call
|
||||
|
||||
intVal :: Int
|
||||
-- ^ @variable
|
||||
intVal = 5
|
||||
-- ^ @variable
|
||||
|
||||
intFun :: Int -> Int
|
||||
intFun = 5
|
||||
-- ^ @function
|
||||
|
||||
mbInt :: Maybe Int
|
||||
-- ^ @variable
|
||||
mbInt = Just 5
|
||||
-- ^ @variable
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue