diff options
| author | Syndamia <kamen@syndamia.com> | 2023-11-23 19:56:22 +0200 |
|---|---|---|
| committer | Syndamia <kamen@syndamia.com> | 2023-11-23 19:56:37 +0200 |
| commit | 5c659c2b631728226b29c90bbae229b4f399ddae (patch) | |
| tree | 093ee6ef7967463500c027e28886358ddc0ead4d | |
| parent | 287831e5d785ef94857b39d291306db158dedfdb (diff) | |
| download | csma-5c659c2b631728226b29c90bbae229b4f399ddae.tar csma-5c659c2b631728226b29c90bbae229b4f399ddae.tar.gz csma-5c659c2b631728226b29c90bbae229b4f399ddae.zip | |
[csmap] No more removal of leading tabulation
| -rwxr-xr-x | csmap.awk | 11 |
1 files changed, 0 insertions, 11 deletions
@@ -84,8 +84,6 @@ stage1 && /<[^>]*>[[:blank:]]*\{/ { } stage1 && /<[^>]*>/ { - removeLeadingTabulation() - # Start searching for a potential opening brace macroNameOnly = 1 macroNameLine = $0 @@ -96,8 +94,6 @@ stage1 && /<[^>]*>/ { stage1 && depth >= 1 { depth += gsub("{", "{") - gsub("}", "}") - removeLeadingTabulation() - skipORS = 0 if (depth <= namevec_TopDepth()) { # Remove macro closing braces @@ -121,13 +117,6 @@ stage1 && depth >= 1 { next } -function removeLeadingTabulation() { - # Remove leading tabulation when inside macro definition - for (i = namevec_Length(); i > 0; i--) { - sub(/^ /, "") - } -} - # # Stage 2 # Do substitution |
