diff --git a/src/ScintillaNET/Lexer.cs b/src/ScintillaNET/Lexer.cs index be199bc..aa9d677 100644 --- a/src/ScintillaNET/Lexer.cs +++ b/src/ScintillaNET/Lexer.cs @@ -86,6 +86,11 @@ public enum Lexer /// PhpScript = NativeMethods.SCLEX_PHPSCRIPT, + /// + /// Properties file (INI) lexer. + /// + Properties = NativeMethods.SCLEX_PROPERTIES, + /// /// The PureBasic language lexer. /// diff --git a/src/ScintillaNET/NativeMethods.cs b/src/ScintillaNET/NativeMethods.cs index 6460ec2..1b23d40 100644 --- a/src/ScintillaNET/NativeMethods.cs +++ b/src/ScintillaNET/NativeMethods.cs @@ -1439,6 +1439,14 @@ internal static class NativeMethods public const int SCE_PL_STRING_QX_VAR = 65; public const int SCE_PL_STRING_QR_VAR = 66; + // Properties + public const int SCE_PROPS_DEFAULT = 0; + public const int SCE_PROPS_COMMENT = 1; + public const int SCE_PROPS_SECTION = 2; + public const int SCE_PROPS_ASSIGNMENT = 3; + public const int SCE_PROPS_DEFVAL = 4; + public const int SCE_PROPS_KEY = 5; + // PHP script public const int SCE_HPHP_COMPLEX_VARIABLE = 104; public const int SCE_HPHP_DEFAULT = 118; diff --git a/src/ScintillaNET/Style.cs b/src/ScintillaNET/Style.cs index 55462da..0674bd0 100644 --- a/src/ScintillaNET/Style.cs +++ b/src/ScintillaNET/Style.cs @@ -1868,6 +1868,46 @@ public static class PhpScript #endregion PhpScript + #region Properties + + /// + /// Style constants for use with the lexer. + /// + public static class Properties + { + /// + /// Default (whitespace) style index. + /// + public const int Default = NativeMethods.SCE_PROPS_DEFAULT; + + /// + /// Comment style index. + /// + public const int Comment = NativeMethods.SCE_PROPS_COMMENT; + + /// + /// Section style index. + /// + public const int Section = NativeMethods.SCE_PROPS_SECTION; + + /// + /// Assignment operator index. + /// + public const int Assignment = NativeMethods.SCE_PROPS_ASSIGNMENT; + + /// + /// Default (registry-only) value index. + /// + public const int DefVal = NativeMethods.SCE_PROPS_DEFVAL; + + /// + /// Key style index. + /// + public const int Key = NativeMethods.SCE_PROPS_KEY; + } + + #endregion Properties + #region PureBasic ///