MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / is_punctuation

Method is_punctuation

atomic-core/src/diff/token/tokenizer.rs:240–257  ·  view source on GitHub ↗
(b: u8)

Source from the content-addressed store, hash-verified

238 /// Check if a byte is punctuation.
239 #[inline]
240 fn is_punctuation(b: u8) -> bool {
241 matches!(
242 b,
243 b'(' | b')'
244 | b'{'
245 | b'}'
246 | b'['
247 | b']'
248 | b';'
249 | b','
250 | b'.'
251 | b'@'
252 | b'#'
253 | b'$'
254 | b'`'
255 | b'\\'
256 )
257 }
258
259 /// Read a word token (identifier/keyword).
260 fn read_word(&mut self) -> Token<'a> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected