[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/phps-mode a8eadfa 130/405: Improved sample files inline
From: |
Stefan Monnier |
Subject: |
[elpa] externals/phps-mode a8eadfa 130/405: Improved sample files inline and alternative control structures |
Date: |
Sat, 13 Jul 2019 09:59:58 -0400 (EDT) |
branch: externals/phps-mode
commit a8eadfab205eeed25f9b25541995c76a0d0a55ba
Author: Christian Johansson <address@hidden>
Commit: Christian Johansson <address@hidden>
Improved sample files inline and alternative control structures
---
sample-php-files/alternative-control-structure.php | 13 +++++++------
sample-php-files/inline-control-structures.php | 17 +++++++----------
2 files changed, 14 insertions(+), 16 deletions(-)
diff --git a/sample-php-files/alternative-control-structure.php
b/sample-php-files/alternative-control-structure.php
index a9f0bef..817c61f 100644
--- a/sample-php-files/alternative-control-structure.php
+++ b/sample-php-files/alternative-control-structure.php
@@ -1,21 +1,22 @@
<?php
if (true):
- echo 'was here';
- echo 'was here 2';
+ echo 'was true 1';
+ echo 'was true 1 2';
endif;
if (true):
- echo 'was here';
+ echo 'was true 2';
else:
- echo 'was here 2';
+ echo 'was false 2';
endif;
switch (true):
case true:
- echo 'was here 1';
- echo 'was here 2';
+ echo 'was true 3';
+ echo 'was true 3 2';
+ break;
default:
echo 'the default';
endswitch;
diff --git a/sample-php-files/inline-control-structures.php
b/sample-php-files/inline-control-structures.php
index dc88f02..23a4217 100644
--- a/sample-php-files/inline-control-structures.php
+++ b/sample-php-files/inline-control-structures.php
@@ -1,17 +1,14 @@
<?php
if (true)
- echo 'was here';
-echo 'was here 2';
+ echo 'was true 1';
+echo 'was here';
if (true)
- echo 'was here';
+ echo 'was true 3';
else
- echo 'was here 2';
+ echo 'was false';
-switch (true) {
- case true:
- echo 'something here';
- default:
- echo 'the default here';
-}
+$i = 0;
+while ($i++ < 10)
+ echo ' ' . $i . ' ';
- [elpa] externals/phps-mode baab77a 121/405: Unit tests for inline control structures working, (continued)
- [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, 2019/07/13
- [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 <=
- [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
- [elpa] externals/phps-mode 52c502c 139/405: Improved logic for doc-comment tracking, Stefan Monnier, 2019/07/13
- [elpa] externals/phps-mode 1472273 136/405: Begun working on new approach to indentation calculation, Stefan Monnier, 2019/07/13