refactor(natu): rename xatu

This commit was merged in pull request #97.
This commit is contained in:
alexion committed 2026-09-26 20:12:57 -04:00
1 parent 27d9194ac3
commit 0c1a1c1ffa
26 files changed
+82 -81

No files matched your search

+19
View File
@@ -0,0 +1,19 @@
use crate::{ast, rules::TokenRule};
pub struct UnquotedUri;
impl TokenRule for UnquotedUri {
type Token = String;
const ID: &'static str = "unquoted_uri";
fn select(data: &ast::TokenData) -> Option<&Self::Token> {
match data {
ast::TokenData::UnquotedUri(uri) => Some(uri),
}
}
fn check(_token: &Self::Token) -> Option<&'static str> {
Some("URI literals should be quoted")
}
}