diff options
Diffstat (limited to 'doc/LPegLexer.html')
| -rw-r--r-- | doc/LPegLexer.html | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/doc/LPegLexer.html b/doc/LPegLexer.html index 02b1dbdd2..0e1b81142 100644 --- a/doc/LPegLexer.html +++ b/doc/LPegLexer.html @@ -231,7 +231,8 @@ <h2>Using the LPeg Lexer</h2> - <p>Your application communicates with the LPeg lexer using Scintilla's + <p>Your application primarily communicates with the LPeg lexer using + Scintilla's <a class="message" href="ScintillaDoc.html#SCI_PRIVATELEXERCALL"><code>SCI_PRIVATELEXERCALL</code></a> API. The operation constants recognized by the LPeg lexer are based on Scintilla's existing named constants. Note that some of the names of the @@ -280,9 +281,9 @@ <a class="message" href="#SCI_GETSTATUS">SCI_PRIVATELEXERCALL(SCI_GETSTATUS, char *errorMessage) → int</a><br/> <a class="message" href="#SCI_LOADLEXERLIBRARY">SCI_PRIVATELEXERCALL(SCI_LOADLEXERLIBRARY, const char *path)</a><br/> <a class="message" href="#SCI_PROPERTYNAMES">SCI_PRIVATELEXERCALL(SCI_PROPERTYNAMES, char *names) → int</a><br/> - <a class="message" href="#styleNum">SCI_PRIVATELEXERCALL(int styleNum, char *styleName) → int</a><br/> <a class="message" href="#SCI_SETDOCPOINTER">SCI_PRIVATELEXERCALL(SCI_SETDOCPOINTER, int sci)</a><br/> <a class="message" href="#SCI_SETLEXERLANGUAGE">SCI_PRIVATELEXERCALL(SCI_SETLEXERLANGUAGE, languageName)</a><br/> + <a class="message" href="#SCI_NAMEOFSTYLE">SCI_NAMEOFSTYLE(int style, char *name) → int</a><br/> </code> <p><b id="SCI_CHANGELEXERSTATE">SCI_PRIVATELEXERCALL(SCI_CHANGELEXERSTATE, lua_State *L)</b><br/> @@ -401,19 +402,6 @@ <p>See also: <a class="message" href="#SCI_SETLEXERLANGUAGE"><code>SCI_SETLEXERLANGUAGE</code></a></p> - <p><b id="SCI_PRIVATELEXERCALL">SCI_PRIVATELEXERCALL(int styleNum, char *styleName) → int</b><br/> - Returns the length of the token name associated with the given style number - or stores the style name into the given buffer. If the buffer is long - enough, the string is terminated by a <code>0</code> character.</p> - - <p>Usage:</p> - - <pre><code> - style = SendScintilla(sci, SCI_GETSTYLEAT, pos, 0) - SendScintilla(sci, SCI_PRIVATELEXERCALL, style, token) - // token now contains the name of the style at pos - </code></pre> - <p><b id="SCI_SETDOCPOINTER">SCI_PRIVATELEXERCALL(SCI_SETDOCPOINTER, int sci)</b><br/> Tells the LPeg lexer the address of the Scintilla window (obtained via Scintilla's @@ -456,6 +444,18 @@ <a class="message" href="#SCI_SETDOCPOINTER"><code>SCI_SETDOCPOINTER</code></a>, <a class="message" href="#SCI_PROPERTYNAMES"><code>SCI_PROPERTYNAMES</code></a></p> + <p><b id="SCI_NAMEOFSTYLE">SCI_NAMEOFSTYLE(int style, char *name) → int</b><br/> + Retrieves the name of a style. Note this is <em>not</em> a + <code>SCI_PRIVATELEXERCALL</code>.</p> + + <p>Usage:</p> + + <pre><code> + style = SendScintilla(sci, SCI_GETSTYLEAT, pos, 0) + SendScintilla(sci, SCI_NAMEOFSTYLE, style, token) + // token now contains the name of the style at pos + </code></pre> + <h2>Using Scintilla as a Lua Library</h3> <p>In order to use Scintilla as a Lua library, simply place the <code>lexlua/</code> |
