mirror of
https://github.com/ralsina/tartrazine.git
synced 2025-06-07 20:20:26 -03:00
CLose to 100% tests working, but slooooooow
This commit is contained in:
parent
d2b61fdc6c
commit
32816eb207
@ -42,6 +42,10 @@ known_bad = {
|
|||||||
"#{__DIR__}/tests/mcfunction/selectors.txt",
|
"#{__DIR__}/tests/mcfunction/selectors.txt",
|
||||||
"#{__DIR__}/tests/php/anonymous_class.txt",
|
"#{__DIR__}/tests/php/anonymous_class.txt",
|
||||||
"#{__DIR__}/tests/html/javascript_unclosed.txt",
|
"#{__DIR__}/tests/html/javascript_unclosed.txt",
|
||||||
|
# BAD FOR ONIGMO
|
||||||
|
"#{__DIR__}/tests/json/test_backtracking.txt",
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# Tests that fail because of a limitation in PCRE2
|
# Tests that fail because of a limitation in PCRE2
|
||||||
@ -57,6 +61,7 @@ describe Tartrazine do
|
|||||||
end
|
end
|
||||||
else
|
else
|
||||||
it "parses #{testcase}".split("/")[-2...].join("/") do
|
it "parses #{testcase}".split("/")[-2...].join("/") do
|
||||||
|
p! testcase
|
||||||
text = File.read(testcase).split("---input---\n").last.split("---tokens---").first
|
text = File.read(testcase).split("---input---\n").last.split("---tokens---").first
|
||||||
lexer_name = File.basename(File.dirname(testcase)).downcase
|
lexer_name = File.basename(File.dirname(testcase)).downcase
|
||||||
unless failing_lexers.includes?(lexer_name) ||
|
unless failing_lexers.includes?(lexer_name) ||
|
||||||
|
@ -78,8 +78,8 @@ module Onigmo
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
pattern = "#.*x"
|
# pattern = "\\w"
|
||||||
str = "# foobar"
|
# str = "α"
|
||||||
|
|
||||||
re = Onigmo::Regex.new(pattern, false, false, false)
|
# re = Onigmo::Regex.new(pattern, false, false, false)
|
||||||
p! re.match(str)
|
# p! re.match(str)
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#include "oniguruma.h"
|
#include "onigmo.h"
|
||||||
|
|
||||||
#if defined(_WIN32)
|
#if defined(_WIN32)
|
||||||
#define ONIGWRAP_EXTERN extern __declspec(dllexport)
|
#define ONIGWRAP_EXTERN extern __declspec(dllexport)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user