Files
swift-mirror/validation-test/IDE/crashers_2_fixed/0021-lexer-commentlength.swift
Rintaro Ishizaki 21db9723e4 [Lexer] Don't include backtick length into comment length
Although backtick is a kind of trivia piece, Token::getCommentRange doesn't
take it into account. Invalid Token::getCommentRange used to cause
compiler crash.

rdar://problem/42492793
https://bugs.swift.org/browse/SR-8315
2018-07-24 04:37:07 +09:00

5 lines
114 B
Swift

/*comment*/`init`()
foo();/*comment*/`var`()
// RUN: %target-swift-ide-test -syntax-coloring -source-filename %s