summaryrefslogtreecommitdiff
path: root/tests/examplefiles
diff options
context:
space:
mode:
authorAnteru <bitbucket@ca.sh13.net>2018-11-24 16:37:35 +0000
committerAnteru <bitbucket@ca.sh13.net>2018-11-24 16:37:35 +0000
commitc85d52dfad2b5b1f9783e88ac52d893e30f034d2 (patch)
treeeb3ef2aa70d2fbb7a1a307042038405929aa9650 /tests/examplefiles
parentee4cc2ef1bc96d44e93c1ad881e7b533bc83b8ae (diff)
parentd13cb73dc075a689f17e453a392429eb880b2eca (diff)
downloadpygments-git-c85d52dfad2b5b1f9783e88ac52d893e30f034d2.tar.gz
Merged in Reedbeta/pygments-main/hlsl-lexer (pull request #675)
Add HLSL lexer Approved-by: Anteru <bitbucket@ca.sh13.net>
Diffstat (limited to 'tests/examplefiles')
-rw-r--r--tests/examplefiles/demo.hbs22
-rw-r--r--tests/examplefiles/example.hs10
-rw-r--r--tests/examplefiles/example.tf10
-rw-r--r--tests/examplefiles/xorg.conf48
4 files changed, 90 insertions, 0 deletions
diff --git a/tests/examplefiles/demo.hbs b/tests/examplefiles/demo.hbs
index 1b9ed5a7..ae80cc1b 100644
--- a/tests/examplefiles/demo.hbs
+++ b/tests/examplefiles/demo.hbs
@@ -10,3 +10,25 @@
{{else}}
<button {{action expand}}>Show More...</button>
{{/if}}
+
+{{> myPartial}}
+{{> myPartial var="value" }}
+{{> myPartial var=../value}}
+{{> (myPartial)}}
+{{> (myPartial) var="value"}}
+{{> (lookup . "myPartial")}}
+{{> ( lookup . "myPartial" ) var="value" }}
+{{> (lookup ../foo "myPartial") var="value" }}
+{{> @partial-block}}
+
+{{#>myPartial}}
+...
+{{/myPartial}}
+
+{{#*inline "myPartial"}}
+...
+{{/inline}}
+
+{{../name}}
+{{./name}}
+{{this/name}}
diff --git a/tests/examplefiles/example.hs b/tests/examplefiles/example.hs
index f5e2b555..764cab77 100644
--- a/tests/examplefiles/example.hs
+++ b/tests/examplefiles/example.hs
@@ -29,3 +29,13 @@ data ĈrazyThings =
-- some char literals:
charl = ['"', 'a', '\ESC', '\'', ' ']
+
+-- closed type families
+type family Fam (a :: Type) = r :: Type where
+ Fam Int = True
+ Fam a = False
+
+-- type literals
+type IntChar = '[Int, Char]
+type Falsy = 'False
+type Falsy = '(10, 20, 30)
diff --git a/tests/examplefiles/example.tf b/tests/examplefiles/example.tf
index d3f02779..5a85dbee 100644
--- a/tests/examplefiles/example.tf
+++ b/tests/examplefiles/example.tf
@@ -39,6 +39,16 @@ provider "aws" {
*/
+resource "aws_route53_record" "test" {
+ zone_id = "zone"
+ name = "name"
+ type = "A"
+ alias {
+ name = "alias name"
+ }
+}
+
+
# Single line comment
resource "aws_instance" "example" {
ami = "ami-408c7f28"
diff --git a/tests/examplefiles/xorg.conf b/tests/examplefiles/xorg.conf
new file mode 100644
index 00000000..e1f7164b
--- /dev/null
+++ b/tests/examplefiles/xorg.conf
@@ -0,0 +1,48 @@
+Section "Files"
+ ModulePath "/usr/lib64/opengl/nvidia/extensions"
+ ModulePath "/usr/lib64/xorg/modules"
+EndSection
+
+Section "ServerLayout"
+ Identifier "XFree86 Configured"
+ Screen "Screen"
+EndSection
+
+Section "ServerFlags"
+ Option "AutoAddDevices" "false"
+EndSection
+
+Section "Screen"
+ Identifier "Screen"
+ Device "Card0"
+ DefaultDepth 24
+ SubSection "Display"
+ Depth 24
+ EndSubSection
+ Option "UseEDIDDpi" "False"
+ Option "DPI" "96 x 96"
+EndSection
+
+Section "Device"
+ Identifier "Card0"
+ Driver "nvidia"
+ VendorName "NVIDIA Corporation" # inline comment
+ #Option "RenderAccel" "true"
+
+ #Option "NvAgp" "3"
+ #Option "AllowGLXWithComposite" "true"
+ #Option "AddARGBGLXVisuals" "true"
+ #Option "XAANoOffscreenPixmaps" "true"
+ #Option "DRI" "true"
+
+ #Option "UseEvents" "false"
+ #Option "TripleBuffer" "1"
+ #Option "DamageEvents" "1"
+ ##Option "BackingStore" "1"
+ #Option "PixmapCacheSize" "70000"
+ #Option "OnDemandVBlankInterrupts" "true"
+EndSection
+
+Section "Extensions"
+# Option "Composite" "Disabled"
+EndSection