Remove unused bits of lexer config

This commit is contained in:
2024-08-15 23:17:49 -03:00
parent ada30915c3
commit 9041b763ea

View File

@@ -47,9 +47,6 @@ module Tartrazine
struct Lexer struct Lexer
property config = { property config = {
name: "", name: "",
aliases: [] of String,
filenames: [] of String,
mime_types: [] of String,
priority: 0.0, priority: 0.0,
case_insensitive: false, case_insensitive: false,
dot_all: false, dot_all: false,
@@ -169,9 +166,6 @@ module Tartrazine
if config if config
l.config = { l.config = {
name: xml_to_s(config, name) || "", name: xml_to_s(config, name) || "",
aliases: xml_to_a(config, _alias) || [] of String,
filenames: xml_to_a(config, filename) || [] of String,
mime_types: xml_to_a(config, mime_type) || [] of String,
priority: xml_to_f(config, priority) || 0.0, priority: xml_to_f(config, priority) || 0.0,
not_multiline: xml_to_s(config, not_multiline) == "true", not_multiline: xml_to_s(config, not_multiline) == "true",
dot_all: xml_to_s(config, dot_all) == "true", dot_all: xml_to_s(config, dot_all) == "true",