emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/phps-mode be35ed6 127/405: Added sample files for inlin


From: Stefan Monnier
Subject: [elpa] externals/phps-mode be35ed6 127/405: Added sample files for inline and alternative control structures
Date: Sat, 13 Jul 2019 09:59:58 -0400 (EDT)

branch: externals/phps-mode
commit be35ed6f06a22c3640adc3dfe1649ec319000312
Author: Christian Johansson <address@hidden>
Commit: Christian Johansson <address@hidden>

    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';
+}



reply via email to

[Prev in Thread] Current Thread [Next in Thread]