Package: mc
Version: 3:4.8.24-2
Severity: wishlist
Tags: patch

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Attached is a syntax highlighting file for Turtle,
a serialization of the RDF semantic web data language.

Please consider including it, and/or passing it upstream.

 - Jonas

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEn+Ppw2aRpp/1PMaELHwxRsGgASEFAl6TCqMACgkQLHwxRsGg
ASEn7g//W1xNYV19/4LfaEHr5QQ+r+U95oyZcMoUdcuZUI64IUe1Azql8T/4aN7n
1WHo/LVkriKCViiM9OLEAIEByXeaJNs9vUfBUZXIP34+ketk7s2bCoQXql3Ud3Le
9O+6ILygGyPxebrMG5PUPkd3XRinbhmhZ6CVxXq3PRCD35LqNWnIbnxHLr/uHkRG
MderB6z8r76qgRxxZlyYxvW3/A6564ITTAUBHOQGcOiWuIf/4QenN5x/+aiJBucE
BIQeArggJgjRobWWFrwfk65bmFF/NhVy6b1z05TT/tSM2WgbsrchF/CVaT8LwM43
wzhcf0Jit41gXGuEtKi7/fkbshP0fa5R5EaKzIPOMcooWD/9zMKdFhmwEdpRWMXD
sHQ4jQ64ZRqwknvFXVGtm6QvSOE57VdYUX3/Ax6mDhxwB0RBeRt9Uii0e7cm5KSS
L9qARAG16DVAsp2j8jBvGSY3PJuhSldacGQwPyGgqPUKJn8M+faTVWCcF0AyuHQJ
sRTZEIJaYw+P9FZXUUBc1Ym5WJD8zzrrjOlEhzNUq598QE1dKUJXR0TWUp4ERmzB
5RcrBuOs1dJK9daeS0L08kfM74dNxOTwShZxCJblFeDkCIjDIEvLzuOZPMce/toe
YtV0gp0Cpkj0gzyb93V5CsFDOjWSZqkb3yI7ngdtdAwQ2zQHEas=
=06W7
-----END PGP SIGNATURE-----
#
# Turtle syntax highlighting
# for MC Editor/CoolEdit
#
# Copyright 2020, Jonas Smedegaard <d...@jones.dk>
#
# This program is free software:
# you can redistribute it and/or modify it
# under the terms of the GNU General Public License
# as published by the Free Software Foundation,
# either version 3 of the License,
# or (at your option) any later version.
#
# 2020-04-12  Jonas Smedegaard <d...@jones.dk>
#  * Initial public release.
#
# Reference:
#   https://www.w3.org/TeamSubmission/turtle/

context default lightgray
    spellcheck

# declarations
    keyword whole @base magenta
    keyword whole @prefix magenta

    keyword whole a yellow

    keyword ^^ brightmagenta

# Collection
    keyword ( brightmagenta
    keyword ) brightmagenta

# Shorthand prefix
    keyword wholeleft 
\{abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ\}\[\abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-\]:
 cyan
    keyword wholeleft : cyan

# Anonymous node
    keyword wholeleft _: cyan
    keyword [ cyan
    keyword ] cyan

# Decimal integers
    keyword whole \{0123456789\}\[0123456789\] yellow
    keyword whole \{-+\}\{0123456789\}\[0123456789\] yellow

# Decimal floating point arbitrary precision number
    keyword whole \{0123456789\}.\[0123456789\] yellow
    keyword whole .\{0123456789\}\[0123456789\] yellow
    keyword whole \{-+\}\{0123456789\}.\[0123456789\] yellow
    keyword whole \{-+\}.\{0123456789\}\[0123456789\] yellow

# Decimal floating point double/fixed precision number
    keyword whole 
\{0123456789\}.\[0123456789\]\{eE\}\{0123456789\}\[0123456789\] yellow
    keyword whole 
\{0123456789\}.\[0123456789\]\{-+\}\{eE\}\{0123456789\}\[0123456789\] yellow
    keyword whole 
.\{0123456789\}\[0123456789\]\{eE\}\{0123456789\}\[0123456789\] yellow
    keyword whole 
.\{0123456789\}\[0123456789\]\{-+\}\{eE\}\{0123456789\}\[0123456789\] yellow
    keyword whole 
\{-+\}\{0123456789\}.\[0123456789\]\{eE\}\{0123456789\}\[0123456789\] yellow
    keyword whole 
\{-+\}\{0123456789\}.\[0123456789\]\{-+\}\{eE\}\{0123456789\}\[0123456789\] 
yellow
    keyword whole 
\{-+\}.\{0123456789\}\[0123456789\]\{eE\}\{0123456789\}\[0123456789\] yellow
    keyword whole 
\{-+\}.\{0123456789\}\[0123456789\]\{-+\}\{eE\}\{0123456789\}\[0123456789\] 
yellow

# Boolean
    keyword whole true yellow
    keyword whole false yellow

# Language
    keyword wholeright 
@\{abcdefghijklmnopqrstuvwxyz\}\[abcdefghijklmnopqrstuvwxyz0123456789-\]\[abcdefghijklmnopqrstuvwxyz0123456789\]
 brightmagenta
    keyword wholeright 
@\{abcdefghijklmnopqrstuvwxyz\}\[abcdefghijklmnopqrstuvwxyz0123456789\] 
brightmagenta

# Punctuation
    keyword , white
    keyword ; white
#    keyword . black white
    keyword . white brightmagenta

# URL
#    keyword whole <*> brightred
context < > brightred

# TODO: enable when context ending at newline doesn't ruin next context
# syntax violation
#    keyword  +\n black red

# String escape
    keyword 
\\u\{0123456789abcdef\}\{0123456789abcdef\}\{0123456789abcdef\}\{0123456789abcdef\}
 brightgreen
    keyword 
\\U\{0123456789abcdef\}\{0123456789abcdef\}\{0123456789abcdef\}\{0123456789abcdef\}\{0123456789abcdef\}\{0123456789abcdef\}\{0123456789abcdef\}\{0123456789abcdef\}
 brightgreen
    keyword \\\{tnr>\\} brightgreen

# Single-line literals
context exclusive " " green
    spellcheck

# TODO: enable when context ending at newline doesn't ruin next context
# syntax violation
#    keyword +\n black red

# String escape
    keyword 
\\u\{0123456789abcdef\}\{0123456789abcdef\}\{0123456789abcdef\}\{0123456789abcdef\}
 brightgreen
    keyword 
\\U\{0123456789abcdef\}\{0123456789abcdef\}\{0123456789abcdef\}\{0123456789abcdef\}\{0123456789abcdef\}\{0123456789abcdef\}\{0123456789abcdef\}\{0123456789abcdef\}
 brightgreen
    keyword \\\{tnr"\\} brightgreen

# Multi-line literals
context """ """ green
    spellcheck

# String escape
    keyword 
\\u\{0123456789abcdef\}\{0123456789abcdef\}\{0123456789abcdef\}\{0123456789abcdef\}
 brightgreen
    keyword 
\\U\{0123456789abcdef\}\{0123456789abcdef\}\{0123456789abcdef\}\{0123456789abcdef\}\{0123456789abcdef\}\{0123456789abcdef\}\{0123456789abcdef\}\{0123456789abcdef\}
 brightgreen
    keyword \\\{tnr"\\} brightgreen

# Comment
context linestart # \n brown
    spellcheck

# Ideally we would have defined comments with "context linestart \[\s\]# ...",
# but contexts can't start with a character class. So we define comments twice.
context linestart \s\[\s\]# \n brown
    spellcheck

Reply via email to