~vcs-imports/gawk/master

« back to all changes in this revision

Viewing changes to test/xref.awk

Update README.solaris.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
        # 12/2010: Modified for gawk test suite to use a variable
4
4
        # for the sort command and to use `sort -k1' instead of `sort +1'
5
5
 
6
 
        # 10/2020: Bug fix applied to code.
7
 
 
8
6
        BEGIN {
9
7
                if (sortcmd == "") sortcmd = "sort"             # "sort -k1"
10
8
 
123
121
                        else if ( line ~ /^}/ ) {
124
122
                                tok = "}"; line = substr(line,2); return 3 }
125
123
                        # change regexes to use posix character classes
126
 
                        else if ( match(line,/^[[:alpha:]_][[:alnum:]_]*\[/) ) {
 
124
                        else if ( match(line,/^[[:alpha:]_][[:alnum:]]*\[/) ) {
127
125
                                tok = substr(line,1,RLENGTH-1)
128
126
                                line = substr(line,RLENGTH+1)
129
127
                                return 5 }
130
 
                        else if ( match(line,/^[[:alpha:]_][[:alnum:]_]*\(/) ) {
 
128
                        else if ( match(line,/^[[:alpha:]_][[:alnum:]]*\(/) ) {
131
129
                                tok = substr(line,1,RLENGTH-1)
132
130
                                line = substr(line,RLENGTH+1)
133
131
                                if ( ! ( tok in keywords ) ) return 6 }
134
 
                        else if ( match(line,/^[[:alpha:]_][[:alnum:]_]*/) ) {
 
132
                        else if ( match(line,/^[[:alpha:]_][[:alnum:]]*/) ) {
135
133
                                tok = substr(line,1,RLENGTH)
136
134
                                line = substr(line,RLENGTH+1)
137
135
                                if ( ! ( tok in keywords ) ) return 4 }