default.txt

(1 KB) Pobierz
-- This is the default autocomplete source file parser

-- just use any non-comment lines as-is (lines starting with -- or // work as comments)
-- with an exception of lines starting with:
-- lines starting with <error>, <warning>, <substring> or <source> tag which are treated specially

--
-- ignore any lines starting with double -- or // (with optional preceeding whitespaces)
--
^(?<ignore>(\s)*((--)|(//)))

--
-- special cased <substring> lines
--
^((\s*)\<substring\>(\s*)(?<substring>.*)(\s*)$)

--
-- special cased <error> lines
--
^((\s*)\<error\>(\s*)(?<error>.*)(\s*)$)

--
-- special cased <warning> lines
--
^((\s*)\<warning\>(\s*)(?<warning>.*)(\s*)$)

--
-- special cased <source> lines
--
^((\s*)\<source\>(\s*)(?<source>\S.*\S)(\s*)$)

--
-- special cased <error_exp> lines
--
^((\s*)\<error_exp\>(\s*)(?<error_exp>.*)(\s*)$)

--
-- special cased <warning_exp> lines
--
^((\s*)\<warning_exp\>(\s*)(?<warning_exp>.*)(\s*)$)

--
-- all other lines are ok and read in as-is, (any optional preceeding/trailing whitespaces are removed)
--
^((\s*)(?<string>\S(.*\S|))(\s*)$)
Zgłoś jeśli naruszono regulamin