branch: externals/phps-mode
commit be35ed6f06a22c3640adc3dfe1649ec319000312
Author: Christian Johansson <[email protected]>
Commit: Christian Johansson <[email protected]>
Added sample files for inline and alternative control structures
---
sample-php-files/alternative-control-structure.php | 22 ++++++++++++++++++++++
sample-php-files/inline-control-structures.php | 17 +++++++++++++++++
2 files changed, 39 insertions(+)
diff --git a/sample-php-files/alternative-control-structure.php
b/sample-php-files/alternative-control-structure.php
new file mode 100644
index 0000000..a9f0bef
--- /dev/null
+++ b/sample-php-files/alternative-control-structure.php
@@ -0,0 +1,22 @@
+<?php
+
+if (true):
+ echo 'was here';
+ echo 'was here 2';
+endif;
+
+if (true):
+ echo 'was here';
+else:
+ echo 'was here 2';
+endif;
+
+
+switch (true):
+ case true:
+ echo 'was here 1';
+ echo 'was here 2';
+ default:
+ echo 'the default';
+endswitch;
+
diff --git a/sample-php-files/inline-control-structures.php
b/sample-php-files/inline-control-structures.php
new file mode 100644
index 0000000..dc88f02
--- /dev/null
+++ b/sample-php-files/inline-control-structures.php
@@ -0,0 +1,17 @@
+<?php
+
+if (true)
+ echo 'was here';
+echo 'was here 2';
+
+if (true)
+ echo 'was here';
+else
+ echo 'was here 2';
+
+switch (true) {
+ case true:
+ echo 'something here';
+ default:
+ echo 'the default here';
+}