move defs.txt to src/data/

main
hut 2024-04-23 17:40:16 +02:00
parent 2ecb976b14
commit 9c4167f6e9
2 changed files with 1 additions and 1 deletions

View File

@ -146,7 +146,7 @@ pub fn load_defs(
) {
let re1 = Regex::new(r"^\s*([a-z_-]+)\s+(.*)$").unwrap();
let re2 = Regex::new("\"([^\"]*)\"|(-?[0-9]+[0-9e-]*(?:\\.[0-9e-]+)?)|([a-zA-Z_-][a-zA-Z0-9_-]*)").unwrap();
let defs_string = include_str!("defs.txt");
let defs_string = include_str!("data/defs.txt");
let mut lines = defs_string.lines();
let mut state = ParserState::default();
let mut command;