summaryrefslogtreecommitdiff
path: root/src/token.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/token.rs')
-rw-r--r--src/token.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/token.rs b/src/token.rs
index 76cd7b4..5109ce1 100644
--- a/src/token.rs
+++ b/src/token.rs
@@ -33,9 +33,9 @@ impl Default for TokenPatterns {
fn default() -> Self {
Self {
plain: Regex::new(r#"(?P<value>[^\[]+)"#).unwrap(),
- word: Regex::new(r#"[-._/[:alpha:][:digit:]]+"#).unwrap(),
+ word: Regex::new(r#"[-.:_/[:alpha:][:digit:]]+"#).unwrap(),
spaces: Regex::new(r#"([[:space:]]|\n)+"#).unwrap(),
- single_quoted: Regex::new(r#""(?P<value>.*?)""#).unwrap(),
+ single_quoted: Regex::new(r#""(?P<value>(.|\n)*?)""#).unwrap(),
triple_quoted: Regex::new(r#""""(?P<value>(.|\n)*?)""""#).unwrap(),
}
}