Menu

[r79]: / p5c.ssh  Maximize  Restore  History

Download this file

51 lines (41 with data), 981 Bytes

#
# style sheet for p5c & p5x
# Copyright (c) 2016 Trevor Blight
#
# this is part of the p5c project
#

style p5c is

documentation is
   "This style is part of p5c, but can be used by other versions of pascal."
   "features:"
   " - recognise c preprocessor syntax"
   " - highlight // comments"
   " - convert <>, >= & <= to their postscript equivalents"
   " - {: comments are strong comments"
end documentation

alphabets are
   "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz#"

ancestors are
  cpp, pascal
end ancestors

sequences are
    "{:"  Comment_strong "}",
    "//" Comment,
    "/*" Comment "*/",
    "(*" Comment "*)"
end sequences

operators are
   <> \neq,
   <= \leq,
   >= \geq
end operators

# add missing keywords
keywords in Keyword_strong are
   "case", otherwise
end keywords

# cancel these keywords
keywords in Plain are
   constructor, dec, destructor, inc, object, shl, shr, xor,
   byte, length, pointer, registers, word
end keywords

end style
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.