Commit e0f484d
committed
Enable extending syntaxes to override indentation constrints
This commit introduces `no_indent` variable, inspired by Bash, to enable
extending syntaxes to override indentation constraints.
Use cases:
- embed powershell in indented fenced code blocks in Markdown
- embed powershell in YAML files, such as Github Action workflows
Alternative:
A more general and easier to use approach would be to accept ST not tracking
indentation and just allow to terminate HEREDOCs regardless leading whitespace
in general.1 parent 2ecae8f commit e0f484d
1 file changed
Lines changed: 11 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1082 | 1082 | | |
1083 | 1083 | | |
1084 | 1084 | | |
1085 | | - | |
| 1085 | + | |
1086 | 1086 | | |
1087 | 1087 | | |
1088 | 1088 | | |
| |||
1091 | 1091 | | |
1092 | 1092 | | |
1093 | 1093 | | |
1094 | | - | |
1095 | | - | |
| 1094 | + | |
| 1095 | + | |
| 1096 | + | |
1096 | 1097 | | |
1097 | 1098 | | |
1098 | 1099 | | |
| |||
1108 | 1109 | | |
1109 | 1110 | | |
1110 | 1111 | | |
1111 | | - | |
1112 | | - | |
| 1112 | + | |
| 1113 | + | |
| 1114 | + | |
1113 | 1115 | | |
1114 | 1116 | | |
1115 | 1117 | | |
| |||
1120 | 1122 | | |
1121 | 1123 | | |
1122 | 1124 | | |
1123 | | - | |
| 1125 | + | |
1124 | 1126 | | |
1125 | 1127 | | |
1126 | 1128 | | |
| |||
1425 | 1427 | | |
1426 | 1428 | | |
1427 | 1429 | | |
| 1430 | + | |
| 1431 | + | |
| 1432 | + | |
1428 | 1433 | | |
1429 | 1434 | | |
1430 | 1435 | | |
| |||
0 commit comments