play around with Scintilla and Lexilla
This commit is contained in:
4
3rdparty/lexilla532/lexilla/test/examples/julia/SciTE.properties
vendored
Normal file
4
3rdparty/lexilla532/lexilla/test/examples/julia/SciTE.properties
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
lexer.*.jl=julia
|
||||
keywords.*.jl=const end for function in where
|
||||
keywords2.*.jl=Int Number
|
||||
keywords3.*.jl=true
|
24
3rdparty/lexilla532/lexilla/test/examples/julia/x.jl
vendored
Normal file
24
3rdparty/lexilla532/lexilla/test/examples/julia/x.jl
vendored
Normal file
@ -0,0 +1,24 @@
|
||||
|
||||
# Comment here
|
||||
const bar = '\n'
|
||||
|
||||
"""
|
||||
test_fun(a::Int)
|
||||
For test only
|
||||
"""
|
||||
function test_fun(a::Int, b::T) where T <: Number
|
||||
println(a)
|
||||
println("foo $(bar)")
|
||||
end
|
||||
|
||||
@enum Unicode α=1 β=2
|
||||
|
||||
res = [√i for i in 1:10]
|
||||
∀=1; ∃=2; ∄=3;
|
||||
|
||||
t!'#'
|
||||
t!='#'
|
||||
t[]!='#'
|
||||
|
||||
#= Dummy function =#
|
||||
test_fun²(:sym, true, raw"test", `echo 1`)
|
25
3rdparty/lexilla532/lexilla/test/examples/julia/x.jl.folded
vendored
Normal file
25
3rdparty/lexilla532/lexilla/test/examples/julia/x.jl.folded
vendored
Normal file
@ -0,0 +1,25 @@
|
||||
0 400 400
|
||||
0 400 400 # Comment here
|
||||
0 400 400 const bar = '\n'
|
||||
0 400 400
|
||||
2 400 401 + """
|
||||
0 401 401 | test_fun(a::Int)
|
||||
0 401 401 | For test only
|
||||
0 401 400 | """
|
||||
2 400 401 + function test_fun(a::Int, b::T) where T <: Number
|
||||
0 401 401 | println(a)
|
||||
0 401 401 | println("foo $(bar)")
|
||||
0 401 400 | end
|
||||
0 400 400
|
||||
0 400 400 @enum Unicode α=1 β=2
|
||||
0 400 400
|
||||
0 400 400 res = [√i for i in 1:10]
|
||||
0 400 400 ∀=1; ∃=2; ∄=3;
|
||||
0 400 400
|
||||
0 400 400 t!'#'
|
||||
0 400 400 t!='#'
|
||||
0 400 400 t[]!='#'
|
||||
0 400 400
|
||||
0 400 400 #= Dummy function =#
|
||||
0 400 400 test_fun²(:sym, true, raw"test", `echo 1`)
|
||||
1 400 400
|
24
3rdparty/lexilla532/lexilla/test/examples/julia/x.jl.styled
vendored
Normal file
24
3rdparty/lexilla532/lexilla/test/examples/julia/x.jl.styled
vendored
Normal file
@ -0,0 +1,24 @@
|
||||
{0}
|
||||
{1}# Comment here{0}
|
||||
{3}const{0} {9}bar{0} {7}={0} {6}'\n'{0}
|
||||
|
||||
{14}"""
|
||||
test_fun(a::Int)
|
||||
For test only
|
||||
"""{0}
|
||||
{3}function{0} {9}test_fun{8}({9}a{21}::{4}Int{7},{0} {9}b{21}::{9}T{8}){0} {3}where{0} {9}T{0} {21}<:{0} {4}Number{0}
|
||||
{9}println{8}({9}a{8}){0}
|
||||
{9}println{8}({10}"foo {13}$(bar){10}"{8}){0}
|
||||
{3}end{0}
|
||||
|
||||
{12}@enum{0} {9}Unicode{0} {9}α{7}={2}1{0} {9}β{7}={2}2{0}
|
||||
|
||||
{9}res{0} {7}={0} {8}[{7}√{9}i{0} {3}for{0} {9}i{0} {3}in{0} {2}1{7}:{2}10{8}]{0}
|
||||
{9}∀{7}={2}1{7};{0} {9}∃{7}={2}2{7};{0} {9}∄{7}={2}3{7};{0}
|
||||
|
||||
{9}t!{7}'{1}#'{0}
|
||||
{9}t!{7}={6}'#'{0}
|
||||
{9}t{8}[]{7}!={6}'#'{0}
|
||||
|
||||
{1}#= Dummy function =#{0}
|
||||
{9}test_fun²{8}({11}:sym{7},{0} {5}true{7},{0} {15}raw{10}"test"{7},{0} {16}`echo 1`{8}){0}
|
Reference in New Issue
Block a user