parse/func
All checks were successful
/ job (push) Successful in 4m28s

This commit is contained in:
Marc Beninca 2025-07-04 00:50:35 +02:00
parent 8fd6beed11
commit 9d7c77b881
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -206,7 +206,7 @@ rwx_parse() {
local start="^${ws}" local start="^${ws}"
local constant="[_A-Z][_0-9A-Z]*" local constant="[_A-Z][_0-9A-Z]*"
local setting="=.*" local setting="=.*"
local fn="${ws}(${ws})${ws}{" local func="${ws}(${ws})${ws}{.*"
local id="[_a-zA-Z][_a-z0-9A-Z]*" local id="[_a-zA-Z][_a-z0-9A-Z]*"
local line local line
rwx_ifs_set rwx_ifs_set
@ -219,8 +219,8 @@ rwx_parse() {
done done
RWX_FUNCTIONS="" RWX_FUNCTIONS=""
for line in $(echo "${RWX_CODE}" | for line in $(echo "${RWX_CODE}" |
grep "${start}${id}${fn}" | grep "${start}${id}${func}" |
sed "s|${start}\\(${id}\\)${fn}.*|\\1|"); do sed "s|${start}\\(${id}\\)${func}|\\1|"); do
RWX_FUNCTIONS="${RWX_FUNCTIONS}${line} RWX_FUNCTIONS="${RWX_FUNCTIONS}${line}
" "
done done