Changeset View
Changeset View
Standalone View
Standalone View
data/syntax/selinux-cil.xml
1 | <?xml version="1.0" encoding="UTF-8"?> | 1 | <?xml version="1.0" encoding="UTF-8"?> | ||
---|---|---|---|---|---|
2 | <!DOCTYPE language SYSTEM "language.dtd" | 2 | <!DOCTYPE language SYSTEM "language.dtd" | ||
3 | [ | 3 | [ | ||
4 | <!ENTITY symbol "\w\[\]\.@\=/\*\-$%\+!\|&\^:~`#\{\}'<>\?,\\"> <!-- [].@=/*-_$%+!|&^:~`#{}'<>?,\ --> | 4 | <!ENTITY symbol "\w\[\]\.@\=/\*\-$%\+!\|&\^:~`#\{\}'<>\?,\\"> <!-- [].@=/*-_$%+!|&^:~`#{}'<>?,\ --> | ||
5 | <!ENTITY identifier "[a-zA-Z][\w\-]*"> | 5 | <!ENTITY identifier "[a-zA-Z][\w\-]*"> | ||
6 | <!ENTITY statementchar "[a-z_\-]"> | 6 | <!ENTITY statementchar "[a-z_\-]"> | ||
7 | 7 | | |||
8 | <!ENTITY fullIdentifier "[a-zA-Z][\w\-]*(\.?[\w\-])*"> | 8 | <!ENTITY fullIdentifier "[a-zA-Z][\w\-]*(\.?[\w\-])*"> | ||
9 | <!ENTITY mlsLevel "&fullIdentifier;(:&fullIdentifier;(\s*,\s*&fullIdentifier;)*)?"> | 9 | <!ENTITY mlsLevel "&fullIdentifier;(:&fullIdentifier;(\s*,\s*&fullIdentifier;)*)?"> | ||
10 | ]> | 10 | ]> | ||
11 | 11 | | |||
12 | <!-- | 12 | <!-- | ||
13 | SELinux CIL (Common Interface Language) Policy Syntax Highlighting Definition for Kate | 13 | SELinux CIL (Common Interface Language) Policy Syntax Highlighting Definition for Kate | ||
14 | ========================================================================================== | 14 | ========================================================================================== | ||
15 | This file is part of the KDE's KSyntaxHighlighting framework. | 15 | This file is part of the KDE's KSyntaxHighlighting framework. | ||
16 | 16 | | |||
17 | Copyright (c) 2018 Nibaldo González S. (nibgonz@gmail.com) | 17 | Copyright (c) 2018-2019 Nibaldo González S. (nibgonz@gmail.com) | ||
18 | 18 | | |||
19 | Permission is hereby granted, free of charge, to any person obtaining a copy of this | 19 | Permission is hereby granted, free of charge, to any person obtaining a copy of this | ||
20 | software and associated documentation files (the "Software"), to deal in the Software | 20 | software and associated documentation files (the "Software"), to deal in the Software | ||
21 | without restriction, including without limitation the rights to use, copy, modify, merge, | 21 | without restriction, including without limitation the rights to use, copy, modify, merge, | ||
22 | publish, distribute, sublicense, and/or sell copies of the Software, and to permit | 22 | publish, distribute, sublicense, and/or sell copies of the Software, and to permit | ||
23 | persons to whom the Software is furnished to do so, subject to the following conditions: | 23 | persons to whom the Software is furnished to do so, subject to the following conditions: | ||
24 | 24 | | |||
25 | The above copyright notice and this permission notice shall be included | 25 | The above copyright notice and this permission notice shall be included | ||
Show All 10 Lines | |||||
36 | Based on the Scheme syntax highlighting file (scheme.xml), | 36 | Based on the Scheme syntax highlighting file (scheme.xml), | ||
37 | created by Dominik Haumann (dhaumann@kde.org) & licensed under MIT. | 37 | created by Dominik Haumann (dhaumann@kde.org) & licensed under MIT. | ||
38 | 38 | | |||
39 | Last update: secilc 2.8 | 39 | Last update: secilc 2.8 | ||
40 | More details about CIL: | 40 | More details about CIL: | ||
41 | https://github.com/SELinuxProject/selinux/tree/master/secilc/docs | 41 | https://github.com/SELinuxProject/selinux/tree/master/secilc/docs | ||
42 | 42 | | |||
43 | Change log: | 43 | Change log: | ||
44 | * Version 3 [02-Apr-2019]: Remove one indentation. | ||||
44 | * Version 2 [28-Aug-2018]: | 45 | * Version 2 [28-Aug-2018]: | ||
45 | - Implement "selinux.xml": some rules and keywords are moved there. Improve RegExp | 46 | - Implement "selinux.xml": some rules and keywords are moved there. Improve RegExp | ||
46 | highlighting, add Android permissions and BPF permissions, improve IPv6 | 47 | highlighting, add Android permissions and BPF permissions, improve IPv6 | ||
47 | detection and others improvements. | 48 | detection and others improvements. | ||
48 | - Fix permissions list in "ioctl" kind and "call" statements. | 49 | - Fix permissions list in "ioctl" kind and "call" statements. | ||
49 | - Add "sctp" protocol keyword and policy capabilities keywords. | 50 | - Add "sctp" protocol keyword and policy capabilities keywords. | ||
50 | * Version 1 [26-Jan-2018, by Nibaldo González]: | 51 | * Version 1 [26-Jan-2018, by Nibaldo González]: | ||
51 | - Initial version. | 52 | - Initial version. | ||
52 | --> | 53 | --> | ||
53 | 54 | | |||
54 | <language name="SELinux CIL Policy" | 55 | <language name="SELinux CIL Policy" | ||
55 | version="2" | 56 | version="3" | ||
56 | kateversion="5.0" | 57 | kateversion="5.0" | ||
57 | section="Sources" | 58 | section="Sources" | ||
58 | extensions="*.cil" | 59 | extensions="*.cil" | ||
59 | priority="9" | 60 | priority="9" | ||
60 | mimetype="" | 61 | mimetype="" | ||
61 | author="Nibaldo González (nibgonz@gmail.com)" | 62 | author="Nibaldo González (nibgonz@gmail.com)" | ||
62 | license="MIT"> | 63 | license="MIT"> | ||
63 | 64 | | |||
▲ Show 20 Lines • Show All 576 Lines • ▼ Show 20 Line(s) | 635 | <itemDatas> | |||
640 | <itemData name="Statements" defStyleNum="dsKeyword" bold="1" spellChecking="false"/> | 641 | <itemData name="Statements" defStyleNum="dsKeyword" bold="1" spellChecking="false"/> | ||
641 | <itemData name="Type Statements" defStyleNum="dsFunction" bold="1" spellChecking="false"/> | 642 | <itemData name="Type Statements" defStyleNum="dsFunction" bold="1" spellChecking="false"/> | ||
642 | <itemData name="Policy Config. Statements" defStyleNum="dsPreprocessor" bold="1" spellChecking="false"/> | 643 | <itemData name="Policy Config. Statements" defStyleNum="dsPreprocessor" bold="1" spellChecking="false"/> | ||
643 | <itemData name="Access Keys" defStyleNum="dsWarning" bold="1" spellChecking="false"/> | 644 | <itemData name="Access Keys" defStyleNum="dsWarning" bold="1" spellChecking="false"/> | ||
644 | <itemData name="Expression Keys" defStyleNum="dsVariable" bold="1" spellChecking="false"/> | 645 | <itemData name="Expression Keys" defStyleNum="dsVariable" bold="1" spellChecking="false"/> | ||
645 | <itemData name="Type Name Statements" defStyleNum="dsDataType" bold="1" spellChecking="false"/> | 646 | <itemData name="Type Name Statements" defStyleNum="dsDataType" bold="1" spellChecking="false"/> | ||
646 | <itemData name="Booleans" defStyleNum="dsExtension" bold="1" spellChecking="false"/> | 647 | <itemData name="Booleans" defStyleNum="dsExtension" bold="1" spellChecking="false"/> | ||
647 | 648 | | |||
648 | <itemData name="Types" defStyleNum="dsDataType" spellChecking="false"/> | 649 | <itemData name="Types" defStyleNum="dsDataType" bold="0" spellChecking="false"/> | ||
649 | <itemData name="Special Keys" defStyleNum="dsOthers" spellChecking="false"/> | 650 | <itemData name="Special Keys" defStyleNum="dsOthers" spellChecking="false"/> | ||
650 | <itemData name="File Contexts" defStyleNum="dsSpecialString" spellChecking="false"/> | 651 | <itemData name="File Contexts" defStyleNum="dsSpecialString" spellChecking="false"/> | ||
651 | <itemData name="File Contexts (Type Enforcement)" defStyleNum="dsInformation" spellChecking="false"/> | 652 | <itemData name="File Contexts (Type Enforcement)" defStyleNum="dsInformation" spellChecking="false"/> | ||
652 | <itemData name="Other Keywords" defStyleNum="dsNormal" italic="1" spellChecking="false"/> | 653 | <itemData name="Other Keywords" defStyleNum="dsNormal" italic="1" spellChecking="false"/> | ||
653 | 654 | | |||
654 | <itemData name="Number" defStyleNum="dsDecVal" spellChecking="false"/> | 655 | <itemData name="Number" defStyleNum="dsDecVal" spellChecking="false"/> | ||
655 | <itemData name="Hexadecimal" defStyleNum="dsBaseN" spellChecking="false"/> | 656 | <itemData name="Hexadecimal" defStyleNum="dsBaseN" spellChecking="false"/> | ||
656 | 657 | | |||
658 | <!-- Obtained from "scheme.xml" --> | ||||
657 | <itemData name="Brackets1" defStyleNum="dsNormal" color="#ff0000" bold="1" /> | 659 | <itemData name="Brackets1" defStyleNum="dsNormal" color="#ff0000" bold="1" /> | ||
658 | <itemData name="Brackets2" defStyleNum="dsNormal" color="#ff8800" bold="1" /> | 660 | <itemData name="Brackets2" defStyleNum="dsNormal" color="#ff8800" bold="1" /> | ||
659 | <itemData name="Brackets3" defStyleNum="dsNormal" color="#888800" bold="1" /> | 661 | <itemData name="Brackets3" defStyleNum="dsNormal" color="#888800" bold="1" /> | ||
660 | <itemData name="Brackets4" defStyleNum="dsNormal" color="#008800" bold="1" /> | 662 | <itemData name="Brackets4" defStyleNum="dsNormal" color="#008800" bold="1" /> | ||
661 | <itemData name="Brackets5" defStyleNum="dsNormal" color="#000088" bold="1" /> | 663 | <itemData name="Brackets5" defStyleNum="dsNormal" color="#000088" bold="1" /> | ||
662 | <itemData name="Brackets6" defStyleNum="dsNormal" color="#880088" bold="1" /> | 664 | <itemData name="Brackets6" defStyleNum="dsNormal" color="#880088" bold="1" /> | ||
663 | 665 | | |||
664 | <itemData name="Special Char" defStyleNum="dsSpecialChar" spellChecking="false"/> | 666 | <itemData name="Special Char" defStyleNum="dsSpecialChar" spellChecking="false"/> | ||
Show All 19 Lines |