Ruby: add clarifying comment

This commit is contained in:
Nick Rolfe
2022-04-19 13:10:57 +01:00
parent 76587c4144
commit 76c6a521fd

View File

@@ -28,7 +28,7 @@ string metachar() { result = "'\"\\&<>\n\r\t*|{}[]%$".charAt(_) }
predicate isSimple(RE::RegExpTerm t) {
t instanceof RE::RegExpConstant
or
isSimple(t.(RE::RegExpGroup).getAChild())
isSimple(t.(RE::RegExpGroup).getAChild()) // N.B. a group has only one child
or
isSimpleCharacterClass(t)
or