diff options
| author | Georg Brandl <georg@python.org> | 2021-01-18 21:24:00 +0100 |
|---|---|---|
| committer | Georg Brandl <georg@python.org> | 2021-01-18 22:08:36 +0100 |
| commit | 2a3d3a7d5b9c60dedf6638d876161d9563faebcf (patch) | |
| tree | 809c0b4a686db98f5954afa1944404cd9652c6b2 /tests/lexers/squidconf/example.txt | |
| parent | f0445be718da83541ea3401aad882f3937147263 (diff) | |
| download | pygments-git-examplefiles.tar.gz | |
Move test_examplefiles to new tests/lexers scheme.examplefiles
Diffstat (limited to 'tests/lexers/squidconf/example.txt')
| -rw-r--r-- | tests/lexers/squidconf/example.txt | 316 |
1 files changed, 316 insertions, 0 deletions
diff --git a/tests/lexers/squidconf/example.txt b/tests/lexers/squidconf/example.txt new file mode 100644 index 00000000..234423a8 --- /dev/null +++ b/tests/lexers/squidconf/example.txt @@ -0,0 +1,316 @@ +---input--- +# Some multiline comments + +acl manager proto cache_object +acl localhost src 127.0.0.1/32 ::1 +acl to_localhost dst 127.0.0.0/8 0.0.0.0/32 ::1 +acl SSL_ports port 443 +acl Safe_ports port 80 # http +acl Safe_ports port 21 # ftp +acl Safe_ports port 443 # https +acl Safe_ports port 70 # gopher +acl Safe_ports port 210 # wais +acl Safe_ports port 1025-65535 # unregistered ports +acl Safe_ports port 280 # http-mgmt +acl Safe_ports port 488 # gss-http +acl Safe_ports port 591 # filemaker +acl Safe_ports port 777 # multiling http +acl CONNECT method CONNECT +http_access allow manager localhost +http_access deny manager +http_access deny !Safe_ports +http_access deny CONNECT !SSL_ports +http_access allow localhost +http_access deny all +http_port 3128 +hierarchy_stoplist cgi-bin ? +coredump_dir /var/spool/squid3 +refresh_pattern ^ftp: 1440 20% 10080 +refresh_pattern ^gopher: 1440 0% 1440 +refresh_pattern -i (/cgi-bin/|\?) 0 0% 0 +refresh_pattern . 0 20% 4320 + +---tokens--- +'#' Comment +' Some multiline comments' Comment +'\n\n' Text.Whitespace + +'acl' Keyword +' ' Text.Whitespace +'manager' Text +' ' Text.Whitespace +'proto' Keyword +' ' Text.Whitespace +'cache_object' Text +'\n' Text.Whitespace + +'acl' Keyword +' ' Text.Whitespace +'localhost' Text +' ' Text.Whitespace +'src' Keyword +' ' Text.Whitespace +'127.0.0.1/32' Literal.Number.Float +' ' Text.Whitespace +'::1' Literal.Number.Float +'\n' Text.Whitespace + +'acl' Keyword +' ' Text.Whitespace +'to_localhost' Text +' ' Text.Whitespace +'dst' Keyword +' ' Text.Whitespace +'127.0.0.0/8' Literal.Number.Float +' ' Text.Whitespace +'0.0.0.0/32' Literal.Number.Float +' ' Text.Whitespace +'::1' Literal.Number.Float +'\n' Text.Whitespace + +'acl' Keyword +' ' Text.Whitespace +'SSL_ports' Text +' ' Text.Whitespace +'port' Keyword +' ' Text.Whitespace +'443' Literal.Number +'\n' Text.Whitespace + +'acl' Keyword +' ' Text.Whitespace +'Safe_ports' Text +' ' Text.Whitespace +'port' Keyword +' ' Text.Whitespace +'80' Literal.Number +'\t\t' Text.Whitespace +'#' Comment +' http' Comment +'\n' Text.Whitespace + +'acl' Keyword +' ' Text.Whitespace +'Safe_ports' Text +' ' Text.Whitespace +'port' Keyword +' ' Text.Whitespace +'21' Literal.Number +'\t\t' Text.Whitespace +'#' Comment +' ftp' Comment +'\n' Text.Whitespace + +'acl' Keyword +' ' Text.Whitespace +'Safe_ports' Text +' ' Text.Whitespace +'port' Keyword +' ' Text.Whitespace +'443' Literal.Number +'\t\t' Text.Whitespace +'#' Comment +' https' Comment +'\n' Text.Whitespace + +'acl' Keyword +' ' Text.Whitespace +'Safe_ports' Text +' ' Text.Whitespace +'port' Keyword +' ' Text.Whitespace +'70' Literal.Number +'\t\t' Text.Whitespace +'#' Comment +' gopher' Comment +'\n' Text.Whitespace + +'acl' Keyword +' ' Text.Whitespace +'Safe_ports' Text +' ' Text.Whitespace +'port' Keyword +' ' Text.Whitespace +'210' Literal.Number +'\t\t' Text.Whitespace +'#' Comment +' wais' Comment +'\n' Text.Whitespace + +'acl' Keyword +' ' Text.Whitespace +'Safe_ports' Text +' ' Text.Whitespace +'port' Keyword +' ' Text.Whitespace +'1025-65535' Literal.Number +'\t' Text.Whitespace +'#' Comment +' unregistered ports' Comment +'\n' Text.Whitespace + +'acl' Keyword +' ' Text.Whitespace +'Safe_ports' Text +' ' Text.Whitespace +'port' Keyword +' ' Text.Whitespace +'280' Literal.Number +'\t\t' Text.Whitespace +'#' Comment +' http-mgmt' Comment +'\n' Text.Whitespace + +'acl' Keyword +' ' Text.Whitespace +'Safe_ports' Text +' ' Text.Whitespace +'port' Keyword +' ' Text.Whitespace +'488' Literal.Number +'\t\t' Text.Whitespace +'#' Comment +' gss-http' Comment +'\n' Text.Whitespace + +'acl' Keyword +' ' Text.Whitespace +'Safe_ports' Text +' ' Text.Whitespace +'port' Keyword +' ' Text.Whitespace +'591' Literal.Number +'\t\t' Text.Whitespace +'#' Comment +' filemaker' Comment +'\n' Text.Whitespace + +'acl' Keyword +' ' Text.Whitespace +'Safe_ports' Text +' ' Text.Whitespace +'port' Keyword +' ' Text.Whitespace +'777' Literal.Number +'\t\t' Text.Whitespace +'#' Comment +' multiling http' Comment +'\n' Text.Whitespace + +'acl' Keyword +' ' Text.Whitespace +'CONNECT' Text +' ' Text.Whitespace +'method' Keyword +' ' Text.Whitespace +'CONNECT' Text +'\n' Text.Whitespace + +'http_access' Keyword +' ' Text.Whitespace +'allow' Name.Constant +' ' Text.Whitespace +'manager' Text +' ' Text.Whitespace +'localhost' Text +'\n' Text.Whitespace + +'http_access' Keyword +' ' Text.Whitespace +'deny' Name.Constant +' ' Text.Whitespace +'manager' Text +'\n' Text.Whitespace + +'http_access' Keyword +' ' Text.Whitespace +'deny' Name.Constant +' ' Text.Whitespace +'!Safe_ports' Text +'\n' Text.Whitespace + +'http_access' Keyword +' ' Text.Whitespace +'deny' Name.Constant +' ' Text.Whitespace +'CONNECT' Text +' ' Text.Whitespace +'!SSL_ports' Text +'\n' Text.Whitespace + +'http_access' Keyword +' ' Text.Whitespace +'allow' Name.Constant +' ' Text.Whitespace +'localhost' Text +'\n' Text.Whitespace + +'http_access' Keyword +' ' Text.Whitespace +'deny' Name.Constant +' ' Text.Whitespace +'all' Name.Constant +'\n' Text.Whitespace + +'http_port' Keyword +' ' Text.Whitespace +'3128' Literal.Number +'\n' Text.Whitespace + +'hierarchy_stoplist' Keyword +' ' Text.Whitespace +'cgi-bin' Text +' ' Text.Whitespace +'?' Text +'\n' Text.Whitespace + +'coredump_dir' Keyword +' ' Text.Whitespace +'/var/spool/squid3' Text +'\n' Text.Whitespace + +'refresh_pattern' Keyword +' ' Text.Whitespace +'^ftp:' Text +'\t\t' Text.Whitespace +'1440' Literal.Number +'\t' Text.Whitespace +'20%' Literal.Number +'\t' Text.Whitespace +'10080' Literal.Number +'\n' Text.Whitespace + +'refresh_pattern' Keyword +' ' Text.Whitespace +'^gopher:' Text +'\t' Text.Whitespace +'1440' Literal.Number +'\t' Text.Whitespace +'0%' Literal.Number +'\t' Text.Whitespace +'1440' Literal.Number +'\n' Text.Whitespace + +'refresh_pattern' Keyword +' ' Text.Whitespace +'-i' Text +' ' Text.Whitespace +'(/cgi-bin/|\\?)' Text +' ' Text.Whitespace +'0' Literal.Number +'\t' Text.Whitespace +'0%' Literal.Number +'\t' Text.Whitespace +'0' Literal.Number +'\n' Text.Whitespace + +'refresh_pattern' Keyword +' ' Text.Whitespace +'.' Text +'\t\t' Text.Whitespace +'0' Literal.Number +'\t' Text.Whitespace +'20%' Literal.Number +'\t' Text.Whitespace +'4320' Literal.Number +'\n' Text.Whitespace |
