vbr:
--------------------------------------------------------------------------------
dirks:
--------------------------------------------------------------------------------
By the way - I created a syntax highlighter for awk. It has the same problem
with strings spanning more than one line. Is anybody interested anyway?
--------------------------------------------------------------------------------

Hi,
just to add to the previous response, there seems to be an AWK highlighter as
user highlighter already available (however, as I don't actually use it, I can't
comment its functionality).

This, like many additional highlighters are available via:
Settings: Highlighters settings:
check [x] and select some of the <not assigned> items at the end of the list and
select the needed item from "User highlighters" and save the dialog.

hth,
  vbr
--------------------------------------------------------------------------------


Right. I had mine in use for more than a year now and forgot about the existing
one. The existing one has some errors in upper/lower case, mine is correct and
has a few additional keywords and some comments. I hereby declare mine to be
without any guarantee (not even for being useful) and freely available for any
use:

;PSPad user HighLighter definition file
[Settings]
Name=AWK2 Script
HTMLGroup=0
FileType=*.awk
CommentString=
SharpComment=1
IndentChar=
UnIndentChar=
TabWidth=0
DoubleQuote=1
KeyWordChars=-_
CodeExplorer=ftUnknown
;
[KeyWords]
; predefined functions, must be lower case:
atan2=
close=
cos=
delete=
exp=
getline=
gsub=
index=
int=
length=
log=
match=
next=
nextfile=
print=
printf=
rand=
sin=
split=
sprintf=
sqrt=
srand=
sub=
substr=
system=
tolower=
toupper=
; in addition, nawk/gawk-only:
and=
asort=
asorti=
bindtextdomain=
compl=
dcgettext=
dcngettext=
fflush=
gensub=
lshift=
rshift=
strtonum=
mktime=
strftime=
systime=
xor=
;
[ReservedWords]
; these are only reserved when in all upper case:
BEGIN=
END=
; these are only reserved when in all lower case:
break=
continue=
do=
else=
exit=
for=
function=
if=
in=
return=
while=
; in addition, nawk/gawk-only:
func=
nextfile=
;
[KeyWords2]
; reserved variables, must be all upper case:
ARGC=
ARGIND=
ARGV=
ENVIRON=
FILENAME=
FNR=
FS=
NF=
NR=
RSTART=
RLENGTH=
OFS=
ORS=
OFMT=
RS=
SUBSEP=
CONVFMT=
; in addition, gawk-only:
ARGIND=
AWKPATH=
BINMODE=
ERRNO=
FIELDWIDTHS=
IGNORECASE=
LINT=
PROCINFO=
POSIXLY_CORRECT=
RT=
TEXTDOMAIN=
;
[KeyWords3]
; environment-variables for localization, all upper case:
LANG=
LC_ALL=
LC_COLLATE=
LC_CTYPE=
LC_MESSAGES=
LC_NUMERIC=
LC_TIME=
; environment-variable used by system() function, all upper case:
PATH=


It works best with uppercase/lowercase setting ticked/enabled, because it is
perfectly legal to name a variable "Length" and it would not interfere with the
predefined function "length" :)

-- 
<http://forum.pspad.com/read.php?2,61817,61825>
PSPad freeware editor http://www.pspad.com

Odpovedet emailem