mirror of
https://github.com/koalaman/shellcheck
synced 2025-08-14 02:27:30 -07:00
Moved Eq Token instance to AST where it belongs
This commit is contained in:
parent
0e4f8a763f
commit
3f3ca2789b
2 changed files with 6 additions and 6 deletions
|
@ -31,7 +31,6 @@ import Data.Maybe
|
|||
import Prelude hiding (readList)
|
||||
import System.IO
|
||||
import Text.Parsec.Error
|
||||
import qualified Text.Regex as Re
|
||||
import GHC.Exts (sortWith)
|
||||
|
||||
|
||||
|
@ -441,11 +440,6 @@ condSpacingMsg soft msg = do
|
|||
space <- spacing
|
||||
when (null space) $ (if soft then parseNoteAt else parseProblemAt) pos ErrorC msg
|
||||
|
||||
|
||||
lolHax s = Re.subRegex (Re.mkRegex "(Id [0-9]+)") (show s) "(Id 0)"
|
||||
instance Eq Token where
|
||||
(==) a b = (lolHax a) == (lolHax b)
|
||||
|
||||
readComment = do
|
||||
char '#'
|
||||
anyChar `reluctantlyTill` linefeed
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue