diff options
author | Neil <nyamatongwe@gmail.com> | 2020-04-30 15:19:33 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2020-04-30 15:19:33 +1000 |
commit | 3602f83165d97d55d6a0e9f573c6daed325dfc2a (patch) | |
tree | f8e1c08fe572864fb3e0a3f0320c980bc59f62be | |
parent | 9bc6869da6e845d458eaf39c063943540e10c563 (diff) | |
download | scintilla-mirror-3602f83165d97d55d6a0e9f573c6daed325dfc2a.tar.gz |
Add tests for errorlist lexer.
-rw-r--r-- | lexilla/test/examples/errorlist/AllStyles.err | 102 | ||||
-rw-r--r-- | lexilla/test/examples/errorlist/AllStyles.err.styled | 102 | ||||
-rw-r--r-- | lexilla/test/examples/errorlist/SciTE.properties | 4 |
3 files changed, 208 insertions, 0 deletions
diff --git a/lexilla/test/examples/errorlist/AllStyles.err b/lexilla/test/examples/errorlist/AllStyles.err new file mode 100644 index 000000000..6c5846e0f --- /dev/null +++ b/lexilla/test/examples/errorlist/AllStyles.err @@ -0,0 +1,102 @@ +Default 0
+Some text in default
+
+
+Python Error 1
+ File "x.err", line 2
+
+
+Gcc Error 2, Find In Files Match 21
+ScintillaGTKAccessible.cxx:153:13: warning: Deprecated pre-processor symbol, replace with
+
+
+Microsoft Error 3
+LexErrorList.cxx(15): fatal error C1083: Cannot open include file: 'ILexer.h': No such file or directory
+
+
+Command 4
+>pwd
+
+
+Borland Error 5
+Error E2378 oddEven.c 16: For statement missing ; in function main()
+
+
+Perl Error 6
+Bareword found where operator expected at LexMMIXAL.cxx line 1, near "// Scintilla"
+
+
+DotNET Traceback 7
+ at ExceptionTrace.Program.f4() in C:\Ivan\dev\exp\ExceptionTrace\Program.cs:line 18
+
+
+Lua Error 8
+last token read: `result' at line 40 in file `Test.lua'
+
+
+Ctags 9
+IsAWordChar LexMMIXAL.cxx /^static inline bool IsAWordChar(const int ch) {$/;" f file:
+
+
+Diff Changed ! 10
+! GdkColor white = { 0, 0xFFFF, 0xFFFF, 0xFFFF};
+
+
+Diff Addition + 11
++ <PlatformToolset>v142</PlatformToolset>
+
+
+Diff Deletion - 12
+- <PlatformToolset>v141</PlatformToolset>
+
+
+Diff Message --- 13
+--- a/win32/SciTE.vcxproj Fri Jan 31 12:23:51 2020 +1100
+
+
+PHP error 14
+Fatal error: Call to undefined function: foo() in example.php on line 11
+
+
+Essential Lahey Fortran 90 Error 15
+Line 11, file c:\fortran90\codigo\demo.f90
+
+
+Intel Fortran Compiler Error 16
+Error 71 at (17:teste.f90) : The program unit has no name
+
+
+Intel Fortran Compiler v8.0 Error 17
+fortcom: Error: shf.f90, line 5602: This name does not have ...
+
+
+Absoft Pro Fortran 90 Error 18
+cf90-113 f90fe: ERROR SHF3D, File = shf.f90, Line = 1101, Column = 19
+
+
+HTML Tidy 19
+line 8 column 1 - Error: unexpected </head> in <meta>
+
+
+Java Runtime Stack Trace 20
+ at MethodName>(FileName.java:33)
+
+
+GCC Include Path 22
+In file included from /usr/include/gtk-2.0/gtk/gtkobject.h:37,
+
+
+Escape Sequence 23
+[K
+
+
+Escape Sequence Unknown 24
+[1n
+
+
+Escape Sequence Colour 40
+[0mColour 0 is 40
+
+
+Escape Sequence Colour 41
+[31mColour 1 is 41
diff --git a/lexilla/test/examples/errorlist/AllStyles.err.styled b/lexilla/test/examples/errorlist/AllStyles.err.styled new file mode 100644 index 000000000..b7f89dc02 --- /dev/null +++ b/lexilla/test/examples/errorlist/AllStyles.err.styled @@ -0,0 +1,102 @@ +{0}Default 0 +Some text in default + + +Python Error 1 +{1} File "x.err", line 2 +{0} + +Gcc Error 2, Find In Files Match 21 +{2}ScintillaGTKAccessible.cxx:153:13:{21} warning: Deprecated pre-processor symbol, replace with +{0} + +Microsoft Error 3 +{3}LexErrorList.cxx(15): fatal error C1083: Cannot open include file: 'ILexer.h': No such file or directory +{0} + +Command 4 +{4}>pwd +{0} + +Borland Error 5 +{5}Error E2378 oddEven.c 16: For statement missing ; in function main() +{0} + +Perl Error 6 +{6}Bareword found where operator expected at LexMMIXAL.cxx line 1, near "// Scintilla" +{0} + +DotNET Traceback 7 +{7} at ExceptionTrace.Program.f4() in C:\Ivan\dev\exp\ExceptionTrace\Program.cs:line 18 +{0} + +Lua Error 8 +{8}last token read: `result' at line 40 in file `Test.lua' +{0} + +Ctags 9 +{9}IsAWordChar LexMMIXAL.cxx /^static inline bool IsAWordChar(const int ch) {$/;" f file: +{0} + +Diff Changed ! 10 +{10}! GdkColor white = { 0, 0xFFFF, 0xFFFF, 0xFFFF}; +{0} + +Diff Addition + 11 +{11}+ <PlatformToolset>v142</PlatformToolset> +{0} + +Diff Deletion - 12 +{12}- <PlatformToolset>v141</PlatformToolset> +{0} + +Diff Message --- 13 +{13}--- a/win32/SciTE.vcxproj Fri Jan 31 12:23:51 2020 +1100 +{0} + +PHP error 14 +{14}Fatal error: Call to undefined function: foo() in example.php on line 11 +{0} + +Essential Lahey Fortran 90 Error 15 +{15}Line 11, file c:\fortran90\codigo\demo.f90 +{0} + +Intel Fortran Compiler Error 16 +{16}Error 71 at (17:teste.f90) : The program unit has no name +{0} + +Intel Fortran Compiler v8.0 Error 17 +{17}fortcom: Error: shf.f90, line 5602: This name does not have ... +{0} + +Absoft Pro Fortran 90 Error 18 +{18}cf90-113 f90fe: ERROR SHF3D, File = shf.f90, Line = 1101, Column = 19 +{0} + +HTML Tidy 19 +{19}line 8 column 1 - Error: unexpected </head> in <meta> +{0} + +Java Runtime Stack Trace 20 +{20} at MethodName>(FileName.java:33) +{0} + +GCC Include Path 22 +{22}In file included from /usr/include/gtk-2.0/gtk/gtkobject.h:37, +{0} + +Escape Sequence 23 +{23}[K{0} + + +Escape Sequence Unknown 24 +{24}[1n{0} + + +Escape Sequence Colour 40 +{23}[0m{40}Colour 0 is 40 +{0} + +Escape Sequence Colour 41 +{23}[31m{41}Colour 1 is 41 diff --git a/lexilla/test/examples/errorlist/SciTE.properties b/lexilla/test/examples/errorlist/SciTE.properties new file mode 100644 index 000000000..4410986f0 --- /dev/null +++ b/lexilla/test/examples/errorlist/SciTE.properties @@ -0,0 +1,4 @@ +lexer.*.err=errorlist +lexer.errorlist.value.separate=1 +lexer.errorlist.escape.sequences=1 +style.errorlist.23=fore:#000000,back:#FFFFFF,$(error.background) |