Allow specifying ranges in disable directives

This commit is contained in:
Vidar Holen 2020-09-01 16:22:15 -07:00
parent 43191fa71d
commit 58783ab3cc
5 changed files with 13 additions and 6 deletions

View file

@ -567,5 +567,5 @@ isAnnotationIgnoringCode code t =
T_Annotation _ anns _ -> any hasNum anns
_ -> False
where
hasNum (DisableComment ts) = code == ts
hasNum (DisableComment from to) = code >= from && code < to
hasNum _ = False