[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';
+}
- [elpa] externals/phps-mode 7e2e902 126/405: Fixed a unit test, (continued)
- [elpa] externals/phps-mode 7e2e902 126/405: Fixed a unit test, Stefan Monnier, 2019/07/13
- [elpa] externals/phps-mode 80da137 114/405: Preparations for adding alternative and inline syntax, Stefan Monnier, 2019/07/13
- [elpa] externals/phps-mode baab77a 121/405: Unit tests for inline control structures working, Stefan Monnier, 2019/07/13
- [elpa] externals/phps-mode f0dc652 143/405: More work on new indentation function, Stefan Monnier, 2019/07/13
- [elpa] externals/phps-mode 7dca537 105/405: Started work on renaming files, Stefan Monnier, 2019/07/13
- [elpa] externals/phps-mode e11a1fc 123/405: Fine-tuning of logic collecting data about inline and alternative control structures, Stefan Monnier, 2019/07/13
- [elpa] externals/phps-mode e206605 115/405: Adding failing unit tests for inline and alternative syntax, Stefan Monnier, 2019/07/13
- [elpa] externals/phps-mode c6aa633 118/405: More work on keeping track of alternative control structures, Stefan Monnier, 2019/07/13
- [elpa] externals/phps-mode 60c7431 122/405: Unit tests for gather data about inline and alternative control structure syntax passes, Stefan Monnier, 2019/07/13
- [elpa] externals/phps-mode 897f249 124/405: Work on alternative and inline indentation, Stefan Monnier, 2019/07/13
- [elpa] externals/phps-mode be35ed6 127/405: Added sample files for inline and alternative control structures,
Stefan Monnier <=
- [elpa] externals/phps-mode 7279913 113/405: Improved TODOs, Stefan Monnier, 2019/07/13
- [elpa] externals/phps-mode a8eadfa 130/405: Improved sample files inline and alternative control structures, Stefan Monnier, 2019/07/13
- [elpa] externals/phps-mode 9996ae0 146/405: More work on indentation calculation, Stefan Monnier, 2019/07/13
- [elpa] externals/phps-mode 3776841 138/405: Added new support for tracking doc-comment, HEREDOC and NOWDOC indentation, Stefan Monnier, 2019/07/13
- [elpa] externals/phps-mode 780d065 125/405: Code styling updates, Stefan Monnier, 2019/07/13
- [elpa] externals/phps-mode 314dba1 135/405: Improved articulation of what information get-current-line-data should return, Stefan Monnier, 2019/07/13
- [elpa] externals/phps-mode f0523b7 137/405: More work on new function to calculate indentation, Stefan Monnier, 2019/07/13
- [elpa] externals/phps-mode 16d8056 144/405: Foundation for new indentation tests completed, Stefan Monnier, 2019/07/13
- [elpa] externals/phps-mode d380cd4 129/405: Updated readme, Stefan Monnier, 2019/07/13
- [elpa] externals/phps-mode 3f08b86 128/405: Updated tracking of alternative control structures, Stefan Monnier, 2019/07/13