HEX
Server: Apache
System: Linux pdx1-shared-a2-09 6.6.116-grsec-jammy-dirty #1 SMP Sat Nov 8 00:02:42 UTC 2025 x86_64
User: dh_pvsc7i (5084578)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: //usr/share/highlight/langDefs/lisp.lang
Description="Lisp"

Identifiers=[[ [a-zA-Z_][\w\-]* ]]

Keywords={
  { Id=1,
    Regex=[[\(([\w\-\_]+)]],
  },
      { Id=2,
    Regex=[[ def(un|method)\s+([\w\-]+)]], Group=2
  },
}

Strings={
  Delimiter=[[ "|\[\w+\]|\[/\w+\] ]],
}

Comments={
  { Block=false,
    Delimiter= { [[;]] },
  },
  { Block=true,
    Nested=false,
    Delimiter= { [[\;\|]],[[\|\;]],}
  }
}

Operators=[[\(|\)|\[|\]|\{|\}|\,|\:|\&|<|>|\!|\+|\=|\/|\*|\'|\@|\#|\`]]

-- fix recognition of $
function OnStateChange(oldState, newState, token)
  
   --recognize hereDoc multine strings
   if oldState==HL_STANDARD and newState==HL_STRING then
      exitDelim = string.match(token, "%[(%a+)%]")
      if exitDelim then exitDelim = "[/"..exitDelim.."]" end
   end
   if oldState==HL_STRING and token==exitDelim  then
      exitDelim=nil
      return HL_STRING_END
   end

   return newState
end