This is an archive of the discontinued LLVM Phabricator instance.

clang-format: [JS] handle character classes in regexes.
ClosedPublic

Authored by mprobst on Oct 11 2015, 5:04 PM.

Details

Reviewers
djasper
Summary

Slashes in regular expressions do not need to be escaped and do not terminate
the regular expression even without a preceding backslash.

Diff Detail

Event Timeline

mprobst updated this revision to Diff 37072.Oct 11 2015, 5:04 PM
mprobst retitled this revision from to clang-format: [JS] handle character classes in regexes..
mprobst updated this object.
mprobst added a reviewer: djasper.
mprobst added subscribers: cfe-commits, klimek.
djasper accepted this revision.Oct 11 2015, 8:16 PM
djasper edited edge metadata.

looks good

lib/Format/Format.cpp
879

I think, we should just use bool here.

This revision is now accepted and ready to land.Oct 11 2015, 8:16 PM
djasper closed this revision.Oct 11 2015, 8:16 PM

Submitted as r250009.