# Logtalk language definition file # # http://logtalk.org/ # # Author: Paulo Moura # Mail: pmoura@logtalk.org # Date: 25.10.09 # Version: 1.5 # ------------------------------------------ # This file is a part of highlight, a free source code converter released under the GPL. # # The file is used to describe keywords and special symbols of programming languages. # See README in the highlight directory for details. $DESCRIPTION=Logtalk # variables $KEYWORDS(kwb)=regex((?|=\.\.|;|!|:-|\^)) # Prolog arithmetic operators $KEYWORDS(kwd)=regex((is|mod|rem|//|[+\-]|/(?!\*)|(?<=\*)/|[*][*])) # Prolog arithmetic comparison operators $KEYWORDS(kwd)=regex((=<|<|=:=|=\\=|>=|>)) # Prolog term comparison operators $KEYWORDS(kwd)=regex((@<|@=<|==|\\==|@>|@>=)) # Prolog unification operators $KEYWORDS(kwd)=regex((=|\\=)) # Logtalk mode operators $KEYWORDS(kwd)=regex((\?|@)) # Prolog bitwise operators $KEYWORDS(kwd)=regex((/\\|\\/|>>|\\)) $STRINGDELIMITERS=" ' # numbers $KEYWORDS(kwc)=regex((0['].), 1) $KEYWORDS(kwc)=regex((0b[0-1]+|0o[0-7]+|0x\p{XDigit}+), 1) $KEYWORDS(kwc)=regex((\d+(\.\d+)?([eE]([-+])?\d+)?), 1) $SL_COMMENT=% $ML_COMMENT=/* */ $ALLOWNESTEDCOMMENTS=false $IGNORECASE=false $ESCCHAR=regex(\\[0-7]+\\|\\x\p{XDigit}+\\|\\[abfnrtv\\'"]) $SYMBOLS= ( ) [ ] { } , ; : & | < > ! = / * + -