aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSyndamia <kamen@syndamia.com>2023-11-23 19:56:22 +0200
committerSyndamia <kamen@syndamia.com>2023-11-23 19:56:37 +0200
commit5c659c2b631728226b29c90bbae229b4f399ddae (patch)
tree093ee6ef7967463500c027e28886358ddc0ead4d
parent287831e5d785ef94857b39d291306db158dedfdb (diff)
downloadcsma-5c659c2b631728226b29c90bbae229b4f399ddae.tar
csma-5c659c2b631728226b29c90bbae229b4f399ddae.tar.gz
csma-5c659c2b631728226b29c90bbae229b4f399ddae.zip
[csmap] No more removal of leading tabulation
-rwxr-xr-xcsmap.awk11
1 files changed, 0 insertions, 11 deletions
diff --git a/csmap.awk b/csmap.awk
index 7f17a76..410c82e 100755
--- a/csmap.awk
+++ b/csmap.awk
@@ -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