foo(?=bar) foo : source.regexp.python ( : keyword.operator.lookahead.regexp, punctuation.parenthesis.lookahead.begin.regexp, source.regexp.python ?= : keyword.operator.lookahead.regexp, source.regexp.python bar : source.regexp.python ) : keyword.operator.lookahead.regexp, punctuation.parenthesis.lookahead.end.regexp, source.regexp.python