diff --git a/autotests/folding/highlight.y.fold b/autotests/folding/highlight.y.fold
index dfae62c..6ac826d 100644
--- a/autotests/folding/highlight.y.fold
+++ b/autotests/folding/highlight.y.fold
@@ -1,95 +1,95 @@
-/* Yacc / Bison hl test file.
+/* Yacc / Bison hl test file.
* It won't compile :-) Sure !
- */
+ */
%{
#include
using namespace std;
extern KateParser *parser;
%}
%locations
%union {
int int_val;
double double_val;
bool bool_val;
char *string_val;
char *ident_val;
struct var *v;
void *ptr;
}
%token TOK_NOT_EQUAL "!="
%token TOK_LESSER_E "<="
%token TOK_GREATER_E ">="
%token TOK_EQUAL_2 "==" //comment
%token
PERCENT_DEBUG "%debug"
PERCENT_DEFAULT_PREC "%default-prec"
PERCENT_DEFINE "%define"
;
%type type type_proc
%code top {
#define _GNU_SOURCE
#include
int val;
}
%destructor { free ($$); printf ("%d", @$.first_line); } <*>
%lex-param {scanner_mode *mode};
%parse-param {int *nastiness} {int *randomness}
%initial-action {
@$.initialize (file_name);
};
%%
prog: KW_PROGRAM ident { parser->start($2); } prog_beg_glob_decl instructions { parser->endproc(0); } dev_procedures KW_ENDP ;
number: integer_number
| TOK_DOUBLE
{
$$ = new var;
$$->type = KW_REEL;
$$->cl = var::LITTERAL;
$$->real = $1;
};
words:
%empty
| words word
;
%type word;
%printer { fprintf (yyo, "%s", word_string ($$)); } ;
word:
%?{ boom(1); }
| "hello" { $$ = hello; }
| "bye" { $$ = bye; }
;
foo: { $$ = 0 }
| number { $$ = $1 | $2; }
| hello { $$ = $1 | $3; } // without a comma
hello:
gram1 { $$ = "hi" };
| gram2
;;
%%
#include
int main(void)
-{
+{
puts("Hello, World!");
return 0;
-}
+}
// ALERT NOTE
diff --git a/data/syntax/apparmor.xml b/data/syntax/apparmor.xml
index 2ec78c6..c408cff 100644
--- a/data/syntax/apparmor.xml
+++ b/data/syntax/apparmor.xml
@@ -1,1602 +1,1603 @@
-
+
]>
- profile
- hat
- flags
- xattrs
- audit
- complain
- enforce
- mediate_deleted
- attach_disconnected
- chroot_relative
- chroot_attach
- chroot_no_attach
- delegate_deleted
- no_attach_disconnected
- namespace_relative
- allow
- deny
- owner
- other
- audit
- audit_control
- audit_read
- audit_write
- block_suspend
- chown
- dac_override
- dac_read_search
- fowner
- fsetid
- ipc_lock
- ipc_owner
- kill
- lease
- linux_immutable
- mac_admin
- mac_override
- mknod
- net_admin
- net_bind_service
- net_broadcast
- net_raw
- setgid
- setfcap
- setpcap
- setuid
- sys_admin
- sys_boot
- sys_chroot
- sys_module
- sys_nice
- sys_pacct
- sys_ptrace
- sys_rawio
- sys_resource
- sys_time
- sys_tty_config
- syslog
- wake_alarm
- inet
- ax25
- ipx
- appletalk
- netrom
- bridge
- atmpvc
- x25
- inet6
- rose
- netbeui
- security
- key
- packet
- ash
- econet
- atmsvc
- sna
- irda
- pppox
- wanpipe
- bluetooth
- netlink
- rds
- llc
- can
- tipc
- iucv
- rxrpc
- isdn
- phonet
- ieee802154
- caif
- alg
- nfc
- vsock
- mpls
- ib
- kcm
- smc
- qipcrtr
- xdp
- stream
- dgram
- seqpacket
- rdm
- raw
- tcp
- udp
- icmp
- unix
- fstype
- vfstype
- options
- option
- r
- w
- rw
- ro
- read-only
- suid
- nosuid
- dev
- nodev
- exec
- noexec
- sync
- async
- remount
- mand
- nomand
- dirsync
- atime
- noatime
- diratime
- nodiratime
- bind
- B
- move
- M
- rbind
- R
- verbose
- silent
- loud
- acl
- noacl
- unbindable
- make-unbindable
- runbindable
- make-runbindable
- private
- make-private
- rprivate
- make-rprivate
- slave
- make-slave
- rslave
- make-rslave
- shared
- make-shared
- rshared
- make-rshared
- relatime
- norelatime
- iversion
- noiversion
- strictatime
- user
- nouser
- ecryptfs
- overlayfs
- unionfs
- shm
- cryfs
- encfs
- apparmorfs
- autofs
- bdev
- bpf
- cachefs
- cgroup
- cgroup2
- cifs
- coherent
- configfs
- cpuset
- cramfs
- debugfs
- devfs
- devpts
- devtmpfs
- efs
- fuse
- fuseblk
- fusectl
- futexfs
- hugetlbfs
- kernfs
- mqueue
- pipefs
- proc
- procfs
- pstorefs
- pstore
- ramfs
- romfs
- rootfs
- sdcardfs
- securityfs
- selinuxfs
- sockfs
- specfs
- squashfs
- swapfs
- sysfs
- sysv
- tmpfs
- usbfs
- vfat
- functionfs
- inotifyfs
- labeledfs
- oemfs
- adfs
- affs
- afs
- apfs
- bfs
- btrfs
- ceph
- coda
- exfat
- ext2
- ext3
- ext4
- f2fs
- fatx
- gfs
- hfs
- hfsplus
- hpfs
- ifs
- iso9660
- jffs2
- jffs
- jfs
- lvm2
- minix
- msdos
- ncpfs
- nilfs
- nilfs2
- nfs
- nfs4
- ntfs-3g
- ntfs
- ocfs
- qnx4
- qnx6
- reiser4
- reiserfs
- smbfs
- swap
- tracefs
- ubifs
- udf
- ufs
- umsdos
- urefs
- xenix
- yaffs2
- yaffs
- xfs
- zfs
- oldroot
- peer
- readby
- trace
- tracedby
- set
- peer
- bus
- hup
- int
- quit
- ill
- trap
- abrt
- fpe
- kill
- usr1
- segv
- usr2
- pipe
- alrm
- term
- stkflt
- chld
- cont
- stop
- stp
- ttin
- ttou
- urg
- xcpu
- xfsz
- vtalrm
- prof
- winch
- io
- pwr
- sys
- emt
- exists
- send
- receive
- peer
- bus
- path
- interface
- member
- name
- name
- label
- send
- receive
- bind
- eavesdrop
- system
- session
- peer
- set
- label
- type
- protocol
- addr
- attr
- opt
- send
- receive
- bind
- create
- listen
- accept
- connect
- shutdown
- getattr
- setattr
- getopt
- setopt
- cpu
- fsize
- data
- stack
- core
- rss
- nofile
- ofile
- as
- nproc
- memlock
- locks
- sigpending
- msgqueue
- nice
- rtprio
- rttime
- subset
- safe
- unsafe
- if
- exists
- rw
- r
- w
- read
- write
- profile_name
- HOME
- HOMEDIRS
- multiarch
- pid
- pids
- PROC
- securityfs
- apparmorfs
- sys
- tid
- XDG_DESKTOP_DIR
- XDG_DOWNLOAD_DIR
- XDG_TEMPLATES_DIR
- XDG_PUBLICSHARE_DIR
- XDG_DOCUMENTS_DIR
- XDG_MUSIC_DIR
- XDG_PICTURES_DIR
- XDG_VIDEOS_DIR
- flatpak_exports_root
- system_share_dirs
- user_share_dirs
- abstractions/
- apache2-common
- aspell
- audio
- authentication
- base
- bash
- consoles
- cups-client
- dbus
- dbus-accessibility
- dbus-accessibility-strict
- dbus-session
- dbus-session-strict
- dbus-strict
- dconf
- dovecot-common
- dri-common
- dri-enumerate
- enchant
- fcitx
- fcitx-strict
- fonts
- freedesktop.org
- gnome
- gnupg
- ibus
- kde-icon-cache-write
- kde-globals-write
- kde-language-write
- kde
- kerberosclient
- launchpad-integration
- ldapclient
- libpam-systemd
- likewise
- mdns
- mesa
- mir
- mozc
- mysql
- nameservice
- nis
- nvidia
- opencl
- opencl-common
- opencl-intel
- opencl-mesa
- opencl-nvidia
- opencl-pocl
- openssl
- orbit2
- p11-kit
- perl
- php
- php5
- postfix-common
- private-files
- private-files-strict
- python
- qt5-compose-cache-write
- qt5-settings-write
- qt5
- recent-documents-write
- ruby
- samba
- smbpass
- ssl_certs
- ssl_keys
- svn-repositories
- ubuntu-bittorrent-clients
- ubuntu-browsers
- ubuntu-console-browsers
- ubuntu-console-email
- ubuntu-email
- ubuntu-feed-readers
- ubuntu-gnome-terminal
- ubuntu-helpers
- ubuntu-konsole
- ubuntu-media-players
- ubuntu-unity7-base
- ubuntu-unity7-launcher
- ubuntu-unity7-messaging
- ubuntu-xterm
- user-download
- user-mail
- user-manpages
- user-tmp
- user-write
- video
- vulkan
- wayland
- web-data
- winbind
- wutmp
- X
- xad
- xdg-desktop
- ubuntu-browsers.d/
- java
- mailto
- multimedia
- plugins-common
- productivity
- text-editors
- ubuntu-integration
- ubuntu-integration-xul
- user-files
- apparmor_api/
- change_profile
- examine
- find_mountpoint
- introspect
- is_enabled
- tunables/
- alias
- apparmorfs
- dovecot
- global
- home
- kernelvars
- multiarch
- ntpd
- proc
- securityfs
- sys
- xdg-user-dirs
- home.d/
- multiarch.d/
- xdg-user-dirs.d/
- site.local
- local/
- true
- false
- unspec
- none
- unconfined
- mount
- remount
- umount
- alias
- file
- capability
- network
- pivot_root
- ptrace
- signal
- dbus
- unix
- link
- change_profile
- rlimit
- set
-
+
-
+
-
+
-
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
-
+
-
-
+
+
-
+
-
+
-
+
-
+
-
-
+
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
diff --git a/data/syntax/coffee.xml b/data/syntax/coffee.xml
index 428d55d..aaeae26 100644
--- a/data/syntax/coffee.xml
+++ b/data/syntax/coffee.xml
@@ -1,340 +1,342 @@
- false
- true
- yes
- no
- on
- off
- undefined
- null
- NaN
- Infinity
- return
- break
- continue
- throw
- for
- while
- until
- loop
- if
- else
- unless
- switch
- when
- then
- and
- or
- in
- do
- of
- by
- is
- isnt
- not
- typeof
- delete
- where
- super
- try
- catch
- finally
- try
- catch
- finally
- constructor
- class
- extends
- new
- instanceof
- case
- default
- function
- var
- void
- with
- const
- let
- enum
- export
- import
- native
- __hasProp
- __extends
- __slice
- __bind
- __indexOf
- Object
- Number
- Boolean
- Array
- String
- RegExp
- Function
- Date
- Math
- eval
- setInterval
- clearInterval
- setTimeout
- clearTimeout
- isFinite
- isNaN
- parseFloat
- parseInt
- escape
- unescape
- console
- encodeURI
- encodeURIComponent
- decodeURI
- decodeURIComponent
- window
- document
- navigator
- location
- history
- screen
- alert
- prompt
- process
- GLOBAL
- require
- exports
-
+
-
+
-
+
+
+
-
+
diff --git a/data/syntax/fortran-fixed.xml b/data/syntax/fortran-fixed.xml
index 6ea08a3..196df7a 100644
--- a/data/syntax/fortran-fixed.xml
+++ b/data/syntax/fortran-fixed.xml
@@ -1,592 +1,592 @@
-
+
- allocate
- break
- call
- common
- continue
- cycle
- deallocate
- forall
- where
- elsewhere
- equivalence
- exit
- external
- for
- go
- goto
- if
- implicit
- include
- interface
- intrinsic
- namelist
- none
- nullify
- operator
- assignment
- pause
- procedure
- pure
- elemental
- record
- recursive
- result
- return
- stop
- to
- use
- only
- entry
- while
- access
- backspace
- close
- inquire
- open
- print
- read
- rewind
- write
- format
- unit
- end
- err
- fmt
- iostat
- status
- advance
- size
- eor
- unit
- iostat
- err
- file
- status
- access
- form
- recl
- blank
- position
- action
- delim
- pad
- unit
- iostat
- err
- file
- exist
- opened
- number
- named
- name
- access
- sequential
- direct
- form
- formatted
- unformatted
- recl
- nextrec
- blank
- position
- action
- read
- write
- readwrite
- delim
- pad
- parameter
- save
- pointer
- public
- private
- target
- allocatable
- optional
- sequence
- abs
- cabs
- dabs
- iabs
- aimag
- aint
- dint
- anint
- dnint
- ceiling
- cmplx
- dcmplx
- dimag
- floor
- nint
- idnint
- int
- idint
- ifix
- real
- float
- sngl
- dble
- dreal
- aprime
- dconjg
- dfloat
- ddmim
- rand
- modulo
- conjg
- dprod
- dim
- ddim
- idim
- max
- amax0
- amax1
- max0
- max1
- dmax1
- min
- amin0
- amin1
- min0
- min1
- dmin1
- mod
- amod
- dmod
- sign
- dsign
- isign
- acos
- dacos
- asin
- dasin
- atan
- datan
- atan2
- datan2
- cos
- ccos
- dcos
- cosh
- dcosh
- exp
- cexp
- dexp
- log
- alog
- dlog
- clog
- log10
- alog10
- dlog10
- sin
- csin
- dsin
- sinh
- dsinh
- sqrt
- csqrt
- dsqrt
- tan
- dtan
- tanh
- dtanh
- achar
- char
- iachar
- ichar
- lge
- lgt
- lle
- llt
- adjustl
- adjustr
- index
- len_trim
- scan
- verify
- logical
- exponent
- fraction
- nearest
- rrspacing
- scale
- set_exponent
- spacing
- btest
- iand
- ibclr
- ibits
- ibset
- ieor
- ior
- ishft
- ishftc
- not
- mvbits
- merge
- associated
- present
- kind
- len
- digits
- epsilon
- huge
- maxexponent
- minexponent
- precision
- radix
- range
- tiny
- bit_size
- allocated
- lbound
- ubound
- shape
- size
- repeat
- trim
- selected_int_kind
- selected_real_kind
- transfer
- dot_product
- matmul
- all
- any
- count
- maxval
- minval
- product
- sum
- pack
- unpack
- reshape
- spread
- cshift
- eoshift
- transpose
- maxloc
- minloc
- date_and_time
- system_clock
- random_number
- random_seed
-
+
-
+
-
-
+
+
-
-
-
+
+
+
-
+
-
+
-
-
+
+
-
-
-
+
+
+
-
+
-
+
diff --git a/data/syntax/fortran-free.xml b/data/syntax/fortran-free.xml
index 3660529..9a61bb0 100644
--- a/data/syntax/fortran-free.xml
+++ b/data/syntax/fortran-free.xml
@@ -1,311 +1,311 @@
-
+
keywords##Fortran (Fixed Format)
- associate
- import
- impure
io_functions##Fortran (Fixed Format)
io_keywords##Fortran (Fixed Format)
open_keywords##Fortran (Fixed Format)
inquire_keywords##Fortran (Fixed Format)
types##Fortran (Fixed Format)
- abstract
- asynchronous
- bind
- contiguous
- deferred
- enum
- enumerator
- final
- generic
- nopass
- non_overridable
- protected
- value
- volatile
elemental_procs##Fortran (Fixed Format)
- acosh
- asinh
- atanh
- bessel_j0
- bessel_j1
- bessel_jn
- bessel_y0
- bessel_y1
- bessel_yn
- erf
- erfc
- erfc_scaled
- gamma
- log_gamma
- hypot
inquiry_fn##Fortran (Fixed Format)
- extends_type_of
- same_type_as
- storage_size
- lcobound
- ucobound
- image_index
transform_fn##Fortran (Fixed Format)
- selected_char_kind
- parity
- iall
- iany
- iparity
- num_images
- this_image
non_elem_subr##Fortran (Fixed Format)
- cpu_time
- execute_command_line
- get_environment_variable
-
+
-
+
-
+
-
-
+
+
-
-
-
-
+
+
+
+
-
-
-
+
+
+
-
+
-
+
-
+
-
+
diff --git a/data/syntax/html.xml b/data/syntax/html.xml
index 4b7d7b2..ecbd466 100644
--- a/data/syntax/html.xml
+++ b/data/syntax/html.xml
@@ -1,316 +1,316 @@
-
+
]>
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
-
+
-
+
-
+
diff --git a/data/syntax/logcat.xml b/data/syntax/logcat.xml
index f683cff..4c334b4 100644
--- a/data/syntax/logcat.xml
+++ b/data/syntax/logcat.xml
@@ -1,204 +1,208 @@
-
+
+
]>
-
-
-
-
-
-
-
+
+
+
+
+
+
+
-
+
+
+
+
+
diff --git a/data/syntax/mustache.xml b/data/syntax/mustache.xml
index f82e310..a37c36e 100644
--- a/data/syntax/mustache.xml
+++ b/data/syntax/mustache.xml
@@ -1,471 +1,471 @@
]>
-
+ Start: \{\{~?#?\s*(?=(?:if|unless|with|link\-to|each(?:\-in)?)\b)
+ End: \{\{~?/\s*(?=(?:if|unless|with|link\-to|each(?:\-in)?)\b) -->
-
+
diff --git a/data/syntax/rust.xml b/data/syntax/rust.xml
index e26ed51..00396ee 100644
--- a/data/syntax/rust.xml
+++ b/data/syntax/rust.xml
@@ -1,497 +1,497 @@
-
-
-
+
+
+
+
]>
-
+
- fn
- type
- abstract
- alignof
- as
- async
- await
- become
- box
- break
- const
- continue
- crate
- default
- do
- dyn
- else
- enum
- extern
- final
- for
- if
- impl
- in
- let
- loop
- macro
- match
- mod
- move
- mut
- offsetof
- override
- priv
- proc
- pub
- pure
- ref
- return
- sizeof
- static
- struct
- super
- trait
- try
- typeof
- union
- unsafe
- unsized
- use
- virtual
- where
- while
- yield
- Add
- AddAssign
- Alloc
- Any
- AsMut
- AsRef
- Binary
- BitAnd
- BitAndAssign
- BitOr
- BitOrAssign
- BitXor
- BitXorAssign
- Borrow
- BorrowMut
- BuildHasher
- Clone
- CoerceUnsized
- Copy
- Debug
- Default
- Deref
- DerefMut
- DispatchFromDyn
- Display
- Div
- DivAssign
- DoubleEndedIterator
- Drop
- Eq
- ExactSizeIterator
- Extend
- FixedSizeArray
- Fn
- FnBox
- FnMut
- FnOnce
- From
- FromIterator
- FromStr
- FusedIterator
- Future
- Generator
- GlobalAlloc
- Hash
- Hasher
- Index
- IndexMut
- Into
- IntoIterator
- Iterator
- LowerExp
- LowerHex
- Mul
- MulAssign
- Neg
- Not
- Octal
- Ord
- PartialEq
- PartialOrd
- Pointer
- Product
- RangeBounds
- Rem
- RemAssign
- Send
- Shl
- ShlAssign
- Shr
- ShrAssign
- Sized
- SliceIndex
- Step
- Sub
- SubAssign
- Sum
- Sync
- TrustedLen
- Try
- TryFrom
- TryInto
- Unpin
- Unsize
- UpperExp
- UpperHex
- Write
- AsSlice
- BufRead
- CharExt
- Decodable
- Encodable
- Error
- FromPrimitive
- IteratorExt
- MultiSpan
- MutPtrExt
- Pattern
- PtrExt
- Rand
- Read
- RefUnwindSafe
- Seek
- SliceConcatExt
- SliceExt
- Str
- StrExt
- TDynBenchFn
- Termination
- ToOwned
- ToSocketAddrs
- ToString
- UnwindSafe
- bool
- isize
- usize
- i8
- i16
- i32
- i64
- i128
- u8
- u16
- u32
- u64
- u128
- f32
- f64
- char
- str
- Option
- Result
- Self
- Box
- Vec
- String
- Path
- PathBuf
- c_float
- c_double
- c_void
- FILE
- fpos_t
- DIR
- dirent
- c_char
- c_schar
- c_uchar
- c_short
- c_ushort
- c_int
- c_uint
- c_long
- c_ulong
- size_t
- ptrdiff_t
- clock_t
- time_t
- c_longlong
- c_ulonglong
- intptr_t
- uintptr_t
- off_t
- dev_t
- ino_t
- pid_t
- mode_t
- ssize_t
- self
- true
- false
- Some
- None
- Ok
- Err
- Success
- Failure
- Cons
- Nil
- MAX
- REPLACEMENT_CHARACTER
- UNICODE_VERSION
- DIGITS
- EPSILON
- INFINITY
- MANTISSA_DIGITS
- MAX_10_EXP
- MAX_EXP
- MIN
- MIN_10_EXP
- MIN_EXP
- MIN_POSITIVE
- NAN
- NEG_INFINITY
- RADIX
- MAIN_SEPARATOR
- ONCE_INIT
- UNIX_EPOCH
- EXIT_FAILURE
- EXIT_SUCCESS
- RAND_MAX
- EOF
- SEEK_SET
- SEEK_CUR
- SEEK_END
- _IOFBF
- _IONBF
- _IOLBF
- BUFSIZ
- FOPEN_MAX
- FILENAME_MAX
- L_tmpnam
- TMP_MAX
- O_RDONLY
- O_WRONLY
- O_RDWR
- O_APPEND
- O_CREAT
- O_EXCL
- O_TRUNC
- S_IFIFO
- S_IFCHR
- S_IFBLK
- S_IFDIR
- S_IFREG
- S_IFMT
- S_IEXEC
- S_IWRITE
- S_IREAD
- S_IRWXU
- S_IXUSR
- S_IWUSR
- S_IRUSR
- F_OK
- R_OK
- W_OK
- X_OK
- STDIN_FILENO
- STDOUT_FILENO
- STDERR_FILENO
-
+
-
+
-
+
-
+
-
+
-
-
+
+
-
+
-
+
diff --git a/data/syntax/selinux-cil.xml b/data/syntax/selinux-cil.xml
index 7f57650..fc056f4 100644
--- a/data/syntax/selinux-cil.xml
+++ b/data/syntax/selinux-cil.xml
@@ -1,688 +1,688 @@
-
-
+
+
]>
- and
- or
- xor
- not
- all
- eq
- ne
- neq
- dom
- domby
- incomp
- range
- allow
- auditallow
- dontaudit
- neverallow
- auditdeny
- allowx
- auditallowx
- dontauditx
- neverallowx
- true
- false
- file
- dir
- char
- block
- socket
- pipe
- symlink
- any
- task
- trans
- xattr
- tcp
- udp
- dccp
- sctp
- self
- unordered
- allow
- deny
- reject
- block
- optional
- common
- class
- classmap
- classmapping
- sid
- user
- role
- roleattribute
- type
- classpermission
- typeattribute
- typealias
- tunable
- sensitivity
- sensitivityalias
- category
- categoryalias
- categoryset
- level
- levelrange
- context
- ipaddr
- macro
- boolean
- policycap
- mls
- handleunknown
- blockabstract
- blockinherit
- in
- call
- defaultuser
- defaultrole
- defaulttype
- defaultrange
- userrole
- userattribute
- userattributeset
- userlevel
- userrange
- userbounds
- userprefix
- selinuxuser
- selinuxuserdefault
- roletype
- roleattributeset
- roleallow
- roletransition
- rolebounds
- typealiasactual
- typeattributeset
- typebounds
- typechange
- typemember
- typetransition
- typepermissive
- attributetype
- expandtypeattribute
- nametypetransition
- classcommon
- classorder
- permission
- permissionset
- classpermissionset
- permissionx
- booleanif
- tunableif
- constrain
- validatetrans
- mlsconstrain
- mlsvalidatetrans
- sensitivityaliasactual
- sensitivityorder
- categoryaliasactual
- categoryorder
- sensitivitycategory
- rangetransition
- categoryrange
- sidorder
- sidcontext
- filecon
- fsuse
- genfscon
- fscon
- fsusexattr
- fsusetask
- fsusetrans
- netifcon
- nodecon
- portcon
- iomemcon
- ioportcon
- pcidevicecon
- pirqcon
- devicetreecon
- ibpkeycon
- ibendportcon
- dominance
- allowxperm
- auditallowxperm
- dontauditxperm
- neverallowxperm
- string
- name
- ioctl
- source
- target
- glblub
- low
- high
- low-high
- perm
- object_r
- t1
- t2
- t3
- r1
- r2
- r3
- u1
- u2
- u3
- l1
- l2
- h1
- h2
-
+
-
+
-
+
-
+
-
+
-
+
-
+
diff --git a/data/syntax/selinux-fc.xml b/data/syntax/selinux-fc.xml
index 6932671..96840fe 100644
--- a/data/syntax/selinux-fc.xml
+++ b/data/syntax/selinux-fc.xml
@@ -1,301 +1,301 @@
-
-
-
-
-
+
+
+
+
+
]>
-
+
-
+
-
+
-
+
-
+
diff --git a/data/syntax/selinux.xml b/data/syntax/selinux.xml
index 6378242..3d957b1 100644
--- a/data/syntax/selinux.xml
+++ b/data/syntax/selinux.xml
@@ -1,1638 +1,1640 @@
-
+
+
-
+
-
+
-
+
-
-
+
+
]>
- SELF
- self
- FALSE
- false
- TRUE
- true
- ALLOW
- allow
- NEVERALLOW
- neverallow
- AUDITALLOW
- auditallow
- AUDITDENY
- auditdeny
- DONTAUDIT
- dontaudit
- ALLOWXPERM
- allowxperm
- AUDITALLOWXPERM
- auditallowxperm
- DONTAUDITXPERM
- dontauditxperm
- NEVERALLOWXPERM
- neverallowxperm
- ATTRIBUTE
- attribute
- ATTRIBUTE_ROLE
- attribute_role
- BOOL
- bool
- CATEGORY
- category
- COMMON
- common
- DOMINANCE
- dominance
- EXPANDATTRIBUTE
- expandattribute
- MODULE
- module
- PERMISSIVE
- permissive
- ROLE
- role
- ROLEATTRIBUTE
- roleattribute
- SENSITIVITY
- sensitivity
- TUNABLE
- tunable
- TYPE
- type
- TYPEALIAS
- typealias
- TYPEATTRIBUTE
- typeattribute
- TYPEBOUNDS
- typebounds
- USER
- user
- IF
- if
- ELSE
- else
- require
- REQUIRE
- optional
- OPTIONAL
- DEVICETREECON
- devicetreecon
- FS_USE_TASK
- fs_use_task
- FS_USE_TRANS
- fs_use_trans
- FS_USE_XATTR
- fs_use_xattr
- FSCON
- fscon
- GENFSCON
- genfscon
- IBENDPORTCON
- ibendportcon
- IBPKEYCON
- ibpkeycon
- IOMEMCON
- iomemcon
- IOPORTCON
- ioportcon
- NETIFCON
- netifcon
- NODECON
- nodecon
- PCIDEVICECON
- pcidevicecon
- PIRQCON
- pirqcon
- PORTCON
- portcon
- SID
- sid
- CLASS
- class
- LEVEL
- level
- POLICYCAP
- policycap
- TYPE_CHANGE
- type_change
- TYPE_MEMBER
- type_member
- TYPE_TRANSITION
- type_transition
- ROLE_TRANSITION
- role_transition
- RANGE_TRANSITION
- range_transition
- DEFAULT_USER
- default_user
- DEFAULT_ROLE
- default_role
- DEFAULT_TYPE
- default_type
- DEFAULT_RANGE
- default_range
- CONSTRAIN
- constrain
- VALIDATETRANS
- validatetrans
- MLSCONSTRAIN
- mlsconstrain
- MLSVALIDATETRANS
- mlsvalidatetrans
- ALIAS
- alias
- CLONE
- clone
- INHERITS
- inherits
- ROLES
- roles
- TYPES
- types
- RANGE
- range
- SOURCE
- source
- TARGET
- target
- SAMEUSER
- sameuser
- low-high
- LOW-HIGH
- high
- HIGH
- low
- LOW
- glblub
- GLBLUB
- OR
- or
- AND
- and
- NOT
- not
- xor
- XOR
- eq
- EQ
- eq
- EQ
- dom
- DOM
- domby
- DOMBY
- INCOMP
- incomp
- r1
- R1
- r2
- R2
- r3
- R3
- u1
- U1
- u2
- U2
- u3
- U3
- t1
- T1
- t2
- T2
- t3
- T3
- l1
- L1
- l2
- L2
- h1
- H1
- h2
- H2
- always_check_network
- always_use_network
- cgroup_seclabel
- extended_socket_class
- network_peer_controls
- nnp_nosuid_transition
- open_perms
- redhat1
- accept
- acceptfrom
- access
- acquire_svc
- add
- add_child
- add_color
- add_glyph
- add_name
- admin
- append
- associate
- association
- attach_queue
- audit_access
- audit_control
- audit_read
- audit_write
- bell
- bind
- blend
- block_suspend
- call
- check_context
- chfn
- chown
- chsh
- compute_av
- compute_create
- compute_member
- compute_relabel
- compute_user
- connect
- connectto
- contains
- copy
- create
- create_files_as
- crontab
- dac_override
- dac_read_search
- dccp_recv
- dccp_send
- debug
- delete
- destroy
- disable
- drop
- dyntransition
- egress
- enable
- enforce_dest
- enqueue
- entrypoint
- execheap
- execmem
- execmod
- execstack
- execute
- execute_no_trans
- expand
- export
- force_cursor
- fork
- forward_in
- forward_out
- fowner
- freeze
- fsetid
- get_property
- get_value
- getattr
- getcap
- getfocus
- getgrp
- gethost
- getopt
- getpgid
- getpwd
- getrlimit
- getsched
- getserv
- getsession
- getstat
- grab
- halt
- hide
- hide_cursor
- impersonate
- implement
- import
- ingress
- insert
- install
- install_module
- ioctl
- ipc_info
- ipc_lock
- ipc_owner
- kill
- lease
- link
- linux_immutable
- list_child
- list_property
- listen
- load_module
- load_policy
- lock
- mac_admin
- mac_override
- manage
- manage_subnet
- map
- map_create
- map_read
- map_write
- mknod
- mmap_zero
- module_load
- module_request
- mount
- mounton
- name_bind
- name_connect
- net_admin
- net_bind_service
- net_broadcast
- net_raw
- newconn
- next_value
- nlmsg_read
- nlmsg_readpriv
- nlmsg_relay
- nlmsg_tty_audit
- nlmsg_write
- nnp_transition
- noatsecure
- node_bind
- nosuid_transition
- open
- override
- passwd
- paste
- paste_after_confirm
- polmatch
- prog_load
- prog_run
- ptrace
- query
- quotaget
- quotamod
- quotaon
- rawip_recv
- rawip_send
- read
- read_policy
- reboot
- receive
- record
- recv
- recv_msg
- recvfrom
- relabelfrom
- relabelto
- reload
- remount
- remove
- remove_child
- remove_color
- remove_glyph
- remove_name
- rename
- reparent
- rlimitinh
- rmdir
- rootok
- saver_getattr
- saver_hide
- saver_setattr
- saver_show
- search
- select
- send
- send_msg
- sendto
- set_context_mgr
- set_property
- set_value
- setattr
- setbool
- setcap
- setcheckreqprot
- setcontext
- setcurrent
- setenforce
- setexec
- setfcap
- setfocus
- setfscreate
- setgid
- setkeycreate
- setopt
- setpcap
- setpgid
- setrlimit
- setsched
- setsecparam
- setsockcreate
- setuid
- share
- shmemgrp
- shmemhost
- shmempwd
- shmemserv
- show
- show_cursor
- shutdown
- sigchld
- siginh
- sigkill
- signal
- signull
- sigstop
- start
- status
- stop
- swapon
- sys_admin
- sys_boot
- sys_chroot
- sys_module
- sys_nice
- sys_pacct
- sys_ptrace
- sys_rawio
- sys_resource
- sys_time
- sys_tty_config
- syslog
- syslog_console
- syslog_mod
- syslog_read
- tcp_recv
- tcp_send
- transfer
- transition
- udp_recv
- udp_send
- uninstall
- unix_read
- unix_write
- unlink
- unmount
- unused_perm
- update
- use
- use_as_override
- validate_trans
- view
- wake_alarm
- watch
- watch_mount
- watch_reads
- watch_sb
- watch_with_perm
- write
- add_auth
- clear_uid
- closeDecryptSession
- consumeRights
- decrypt
- duplicate
- exist
- finalizeDecryptUnit
- find
- gen_unique_id
- get
- get_state
- grant
- initializeDecryptUnit
- is_empty
- list
- openDecryptSession
- password
- pread
- reset
- set
- setPlaybackStatus
- sign
- unlock
- user_changed
- verify
- ecryptfs
- cryfs
- encfs
- overlayfs
- unionfs
- devtmpfs
- ramfs
- tmpfs
- adfs
- affs
- afs
- apfs
- apparmorfs
- autofs
- bdev
- bfs
- bpf
- btrfs
- cachefs
- ceph
- cgroup2
- cgroup
- cifs
- coda
- coherent
- configfs
- cpuset
- cramfs
- debugfs
- devfs
- devpts
- efs
- exfat
- ext2
- ext3
- ext4
- f2fs
- fatx
- fuse
- fuseblk
- fusectl
- futexfs
- gfs
- hfs
- hfsplus
- hpfs
- hugetlbfs
- ifs
- iso9660
- jffs2
- jffs
- jfs
- kernfs
- lvm2
- minix
- mqueue
- msdos
- ncpfs
- nfs4
- nfs
- nilfs2
- nilfs
- ntfs-3g
- ntfs
- ocfs
- pipefs
- proc
- procfs
- pstore
- pstorefs
- qnx4
- qnx6
- reiser4
- reiserfs
- romfs
- rootfs
- sdcardfs
- securityfs
- selinuxfs
- shm
- smbfs
- sockfs
- specfs
- squashfs
- swap
- swapfs
- sysfs
- sysv
- tracefs
- ubifs
- udf
- ufs
- umsdos
- urefs
- usbfs
- vfat
- xenix
- xfs
- yaffs2
- yaffs
- zfs
- functionfs
- inotifyfs
- labeledfs
- oemfs
- policy_module
- gen_require
- template
- interface
- optional_policy
- gen_tunable
- tunable_policy
- gen_user
- gen_context
- gen_bool
- gen_cats
- gen_sens
- gen_levels
- mls_systemlow
- mls_systemhigh
- mcs_systemlow
- mcs_systemhigh
- mcs_allcats
- ifndef
- __file__
- __line__
- __program__
- builtin
- changecom
- changequote
- changeword
- debugfile
- debugmode
- decr
- define
- defn
- divert
- divnum
- dnl
- dumpdef
- errprint
- esyscmd
- eval
- format
- ifdef
- ifelse
- include
- incr
- index
- indir
- len
- m4exit
- m4wrap
- maketemp
- mkstemp
- popdef
- pushdef
- shift
- sinclude
- substr
- syscmd
- sysval
- traceon
- traceoff
- translit
- undefine
- undivert
- m4___file__
- m4___line__
- m4___program__
- m4_builtin
- m4_changecom
- m4_changequote
- m4_changeword
- m4_debugfile
- m4_debugmode
- m4_decr
- m4_define
- m4_defn
- m4_divert
- m4_divnum
- m4_dnl
- m4_dumpdef
- m4_errprint
- m4_esyscmd
- m4_eval
- m4_format
- m4_ifdef
- m4_ifelse
- m4_include
- m4_incr
- m4_index
- m4_indir
- m4_len
- m4_m4exit
- m4_m4wrap
- m4_maketemp
- m4_mkstemp
- m4_popdef
- m4_pushdef
- m4_shift
- m4_sinclude
- m4_substr
- m4_syscmd
- m4_sysval
- m4_traceon
- m4_traceoff
- m4_translit
- m4_undefine
- m4_undivert
- regexp
- patsubst
- m4_regexp
- m4_patsubst
-
+
-
+
-
-
+
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
-
+
+
-
+
-
+
-
+
-
+
-
+
-
-
+
+
-
-
+
+
-
+
-
+
-
+
-
-
+
+
-
+
-
+
-
+
-
+
-
+
diff --git a/data/syntax/xml.xml b/data/syntax/xml.xml
index ad34a45..ddfc4e7 100644
--- a/data/syntax/xml.xml
+++ b/data/syntax/xml.xml
@@ -1,149 +1,149 @@
-
+
]>
-
+
-
+
+
-
+
-
-
+
-
+
diff --git a/data/syntax/yacc.xml b/data/syntax/yacc.xml
index 06d6492..ecb1a0d 100644
--- a/data/syntax/yacc.xml
+++ b/data/syntax/yacc.xml
@@ -1,267 +1,267 @@
-
+
-
+
-
+
-
+
-
-
+
-
+
-
+
-
+
-
+
diff --git a/data/syntax/yaml.xml b/data/syntax/yaml.xml
index 2c8b2d9..f93abac 100644
--- a/data/syntax/yaml.xml
+++ b/data/syntax/yaml.xml
@@ -1,635 +1,635 @@
-
+
+
-
-
-
-
+
+
+
+
-
+
-
-
-
-
+
+
+
+
]>
-
-
+
-
-
-
-
+
+
+
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
-
-
-
+
+
+
+
-
+
-
+
-
-
-
-
+
+
+
+
-
+
-
+
-
+
-
-
-
-
+
+
+
+
+ String="^&space;*\t+\s*(?=(?:(?:&keyDQ;|&keySQ;|[^#])*[^#\w\|<>"'])?&literalOp;&endValue;)" />
+ String="^&space;*(?:\?&space;*|\-&space;+){1,6}(?:(?:&keyDQ;|&keySQ;|[^#\-\?\s]|\-[^\s#])(?:(?:&keyDQ;|&keySQ;|[^#])*[^#\w\|<>"'])?)?&literalOp;&endValue;" />
+ String="^&space;*(?:(?:[&\*]|!!)\S+\s+)+&literalOp;&endValue;" />
-
+
-
+
-
+
-
+