- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for trailingDigits (0.14 sec)
-
src/go/scanner/scanner.go
// extract comment text if text[1] == '*' { text = text[:len(text)-2] // lop off trailing "*/" } text = text[7:] // lop off leading "//line " or "/*line " offs += 7 i, n, ok := trailingDigits(text) if i == 0 { return // ignore (not a line directive) } // i > 0 if !ok { // text has a suffix :xxx but xxx is not a number s.error(offs+i, "invalid line number: "+string(text[i:]))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 12:02:03 UTC 2023 - 24.3K bytes - Viewed (0)