From 9c4167f6e9d4203f0650f1bf625ebe30fe9c4f00 Mon Sep 17 00:00:00 2001 From: hut Date: Tue, 23 Apr 2024 17:40:16 +0200 Subject: [PATCH] move defs.txt to src/data/ --- src/commands.rs | 2 +- src/{ => data}/defs.txt | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename src/{ => data}/defs.txt (100%) diff --git a/src/commands.rs b/src/commands.rs index 86339bd..0f6ba4e 100644 --- a/src/commands.rs +++ b/src/commands.rs @@ -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; diff --git a/src/defs.txt b/src/data/defs.txt similarity index 100% rename from src/defs.txt rename to src/data/defs.txt