Skip to content
This repository has been archived by the owner on Dec 22, 2023. It is now read-only.

Commit

Permalink
3.5.4 Release
Browse files Browse the repository at this point in the history
This commit also includes the Properties (INI file) lexer.
  • Loading branch information
jacobslusser committed Oct 19, 2015
1 parent d632e6e commit efeddf6
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/ScintillaNET/Lexer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,11 @@ public enum Lexer
/// </summary>
PhpScript = NativeMethods.SCLEX_PHPSCRIPT,

/// <summary>
/// Properties file (INI) lexer.
/// </summary>
Properties = NativeMethods.SCLEX_PROPERTIES,

/// <summary>
/// The PureBasic language lexer.
/// </summary>
Expand Down
8 changes: 8 additions & 0 deletions src/ScintillaNET/NativeMethods.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
40 changes: 40 additions & 0 deletions src/ScintillaNET/Style.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1868,6 +1868,46 @@ public static class PhpScript

#endregion PhpScript

#region Properties

/// <summary>
/// Style constants for use with the <see cref="Lexer.Properties" /> lexer.
/// </summary>
public static class Properties
{
/// <summary>
/// Default (whitespace) style index.
/// </summary>
public const int Default = NativeMethods.SCE_PROPS_DEFAULT;

/// <summary>
/// Comment style index.
/// </summary>
public const int Comment = NativeMethods.SCE_PROPS_COMMENT;

/// <summary>
/// Section style index.
/// </summary>
public const int Section = NativeMethods.SCE_PROPS_SECTION;

/// <summary>
/// Assignment operator index.
/// </summary>
public const int Assignment = NativeMethods.SCE_PROPS_ASSIGNMENT;

/// <summary>
/// Default (registry-only) value index.
/// </summary>
public const int DefVal = NativeMethods.SCE_PROPS_DEFVAL;

/// <summary>
/// Key style index.
/// </summary>
public const int Key = NativeMethods.SCE_PROPS_KEY;
}

#endregion Properties

#region PureBasic

/// <summary>
Expand Down

0 comments on commit efeddf6

Please sign in to comment.