<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.3" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>pnotepad.org forums &#187; Tag: lexer - Recent Topics</title>
		<link>http://pnotepad.org/forums/tags/lexer</link>
		<description>Programmer&#039;s Notepad Forums</description>
		<language>en-US</language>
		<pubDate>Thu, 09 Feb 2012 11:42:06 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.3</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://pnotepad.org/forums/search.php</link>
		</textInput>
		<atom:link href="http://pnotepad.org/forums/rss/tags/lexer/topics" rel="self" type="application/rss+xml" />

		<item>
                        <title>Custom Lexer? (mamegoma)</title>
			<link>http://pnotepad.org/forums/topic/5179#post-7692</link>
			<pubDate>Mon, 21 Feb 2011 13:37:18 +0000</pubDate>
			<dc:creator>mamegoma</dc:creator>
			<guid isPermaLink="false">7692@http://pnotepad.org/forums/</guid>
			<description>&#60;p&#62;Hi,&#60;br /&#62;
I wrote my own scheme for the Scala language, but am now stuck when it comes to the lexer.&#60;br /&#62;
I assume I'll have to make my own as well? I'm currently using the one for Python, which works, but... meh.&#60;br /&#62;
I searched around here and google but didn't really get anywhere, can someone point me to some info about writing a custom lexer?&#60;/p&#62;
&#60;p&#62;Thanks!
&#60;/p&#62;</description>
		</item>
		<item>
                        <title>Custom syntax highlight using RegExp (AlexAndrei)</title>
			<link>http://pnotepad.org/forums/topic/5095#post-7440</link>
			<pubDate>Thu, 28 Oct 2010 23:26:02 +0000</pubDate>
			<dc:creator>AlexAndrei</dc:creator>
			<guid isPermaLink="false">7440@http://pnotepad.org/forums/</guid>
			<description>&#60;p&#62;Hello,&#60;/p&#62;
&#60;p&#62;I would need some help with a way to have a custom syntax highlight, using regular expression.&#60;/p&#62;
&#60;p&#62;I work a lot with software generated traces, that have various messages with common prefixes and suffixes. Something like: (A&#124;B)_(.+)_(request&#124;confirm)&#60;br /&#62;
A_message1_request&#60;br /&#62;
B_message2_confirm&#60;br /&#62;
etc&#60;/p&#62;
&#60;p&#62;Is there a way to define for example two classes of keywords, one for _request messages, one for _confirm messages, with different styles, and using regular expressions ? I could enter all messages by hand, but there are quite many, and also they change in time.&#60;/p&#62;
&#60;p&#62;Thank you in advance!&#60;/p&#62;
&#60;p&#62;PS: Using PN 2.1.5 + PyPN 1.12. A PyPN method would also be acceptable, but I would prefer to avoid it for now.&#60;br /&#62;
Regards,&#60;br /&#62;
Alex
&#60;/p&#62;</description>
		</item>
		<item>
                        <title>Must lexer tokens be surrounded by whitespace? (RichardRussell)</title>
			<link>http://pnotepad.org/forums/topic/5058#post-7322</link>
			<pubDate>Thu, 26 Aug 2010 17:11:15 +0000</pubDate>
			<dc:creator>RichardRussell</dc:creator>
			<guid isPermaLink="false">7322@http://pnotepad.org/forums/</guid>
			<description>&#60;p&#62;I've emailed Simon directly about this, but got no reply, so I'm trying again here.  I'd like to write a PN lexer for BBC BASIC, but it has unusual requirements: keywords do not (necessarily) need to be surrounded by whitespace.  For example the following is legal syntax in BBC BASIC (although not encouraged!):&#60;/p&#62;
&#60;p&#62;  x = DEGACSCOSPI&#60;/p&#62;
&#60;p&#62;where 'DEG', 'ACS', 'COS' and 'PI' are all separate keywords!  Can a custom PN lexer handle this situation, and if so where can I find out how to write it?
&#60;/p&#62;</description>
		</item>
		<item>
                        <title>Space in keywords (jcbarton)</title>
			<link>http://pnotepad.org/forums/topic/246#post-891</link>
			<pubDate>Tue, 03 Jul 2007 10:57:34 +0000</pubDate>
			<dc:creator>jcbarton</dc:creator>
			<guid isPermaLink="false">891@http://pnotepad.org/forums/</guid>
			<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;Been trying to find an editor that allows custom syntax - where a keyword can be defined as a string - rather than just a word.&#60;/p&#62;
&#60;p&#62;Was about to write a lexer for scintilla, and use notepad++, but then found PN and prefer the interface!!&#60;/p&#62;
&#60;p&#62;So, before I embark on creating a lexer - is it actually possible in the existing lexers to define keywords with spaces in?&#60;/p&#62;
&#60;p&#62;Many thanks....&#60;/p&#62;
&#60;p&#62;John
&#60;/p&#62;</description>
		</item>
		<item>
                        <title>PHP Lexer (deadimp)</title>
			<link>http://pnotepad.org/forums/topic/249#post-902</link>
			<pubDate>Sat, 07 Jul 2007 19:14:24 +0000</pubDate>
			<dc:creator>deadimp</dc:creator>
			<guid isPermaLink="false">902@http://pnotepad.org/forums/</guid>
			<description>&#60;p&#62;A couple of things for PHP:&#60;br /&#62;
&#38;gt; Could you add the keywords &#60;code&#62;protected private public inherits&#60;/code&#62; by default?&#60;br /&#62;
&#38;gt; Could you enable PHP highlighting for short tags? Ex. &#60;code&#62;&#38;lt;?=$value?&#38;gt;&#60;/code&#62;&#60;br /&#62;
&#38;gt; Inline string members (of an object) aren't highlighted. Ex. &#60;code&#62;\&#38;quot;$obj-&#38;gt;member\&#38;quot;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;EDIT: Gah! bbpress is escaping my quotes!
&#60;/p&#62;</description>
		</item>
		<item>
                        <title>schemedef and lexer (TapaniTalvitie)</title>
			<link>http://pnotepad.org/forums/topic/155#post-564</link>
			<pubDate>Mon, 01 Jan 2007 19:47:08 +0000</pubDate>
			<dc:creator>TapaniTalvitie</dc:creator>
			<guid isPermaLink="false">564@http://pnotepad.org/forums/</guid>
			<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;Thanks for the great editor :) Here's few questions concerning the schemedef and lexer:&#60;/p&#62;
&#60;p&#62;1. I'm creating schemedef for the Euphoria programming language. What is the lexer and how can I make my own? &#60;/p&#62;
&#60;p&#62;2. I used vhdl lexer but for some reason the following tags don't have any effect. Why?&#60;/p&#62;
&#60;p&#62;&#38;lt;stringtype id=&#34;1&#34; start=&#34;'&#34; end=&#34;'&#34; multiline=&#34;false&#34; escape=&#34;\&#34; /&#38;gt;&#60;br /&#62;
&#38;lt;comments&#38;gt;&#38;lt;line start=&#34;--&#34; /&#38;gt;&#38;lt;/comments&#38;gt;&#60;/p&#62;
&#60;p&#62;3. I would like to have different syntax coloring for euphoria_keywords and euphoria_datatypes. Is it possible?&#60;/p&#62;
&#60;p&#62;4. The following setting makes single minus char act like a number:&#60;br /&#62;
&#38;lt;numbers start=&#34;[-#0-9]&#34; content=&#34;[#0-9a-f.x]&#34; /&#38;gt;&#60;br /&#62;
Why? It should be syntax colored to number only if following chars contains numbers or #.&#60;/p&#62;
&#60;p&#62;Here's what I've achieved so far: euphoria.schemedef&#60;/p&#62;
&#60;p&#62;&#38;lt;?xml version=&#34;1.0&#34; ?&#38;gt;&#60;br /&#62;
&#38;lt;Scheme&#38;gt;&#60;br /&#62;
	&#38;lt;keyword-classes&#38;gt;&#60;br /&#62;
		&#38;lt;keyword-class name=&#34;euphoria_keywords&#34;&#38;gt;&#60;br /&#62;
			and            end             include          to&#60;br /&#62;
			by             exit            not              type&#60;br /&#62;
			constant       for             or               while&#60;br /&#62;
			do             function        procedure        with&#60;br /&#62;
			else           global          return           without&#60;br /&#62;
			elsif          if              then             xor&#60;br /&#62;
			as&#60;br /&#62;
		&#38;lt;/keyword-class&#38;gt;&#60;br /&#62;
		&#38;lt;keyword-class name=&#34;euphoria_datatypes&#34;&#38;gt;&#60;br /&#62;
			atom integer sequence object&#60;br /&#62;
		&#38;lt;/keyword-class&#38;gt;&#60;br /&#62;
	&#38;lt;/keyword-classes&#38;gt;&#60;/p&#62;
&#60;p&#62;	&#38;lt;schemedef name=&#34;euphoria&#34; title=&#34;Euphoria&#34; author=&#34;Tapani Talvitie&#34; url=&#34;http://www.pnotepad.org/&#34; version=&#34;1&#34;&#60;br /&#62;
		casesensitive=&#34;true&#34; braces=&#34;{[()]}&#34;&#38;gt;&#60;/p&#62;
&#60;p&#62;		&#38;lt;!-- I'm using vhdl lexel here since I don't have a clue how to make my own lexer --&#38;gt;&#60;br /&#62;
		&#38;lt;lexer name=&#34;vhdl&#34; /&#38;gt;&#60;/p&#62;
&#60;p&#62;		&#38;lt;strings&#38;gt;&#60;br /&#62;
			&#38;lt;!-- Single and double quotes string, with \ as an escape character --&#38;gt;&#60;br /&#62;
			&#38;lt;stringtype id=&#34;0&#34; start=&#34;&#38;quot;&#34; end=&#34;&#38;quot;&#34; multiline=&#34;false&#34; escape=&#34;\&#34; /&#38;gt;&#60;br /&#62;
			&#38;lt;stringtype id=&#34;1&#34; start=&#34;'&#34; end=&#34;'&#34; multiline=&#34;false&#34; escape=&#34;\&#34; /&#38;gt;&#60;br /&#62;
		&#38;lt;/strings&#38;gt;&#60;/p&#62;
&#60;p&#62;		&#38;lt;identifiers start=&#34;[a-zA-Z]&#34; /&#38;gt;&#60;/p&#62;
&#60;p&#62;		&#38;lt;comments&#38;gt;&#60;br /&#62;
			&#38;lt;line start=&#34;--&#34; /&#38;gt;&#60;br /&#62;
		&#38;lt;/comments&#38;gt;&#60;/p&#62;
&#60;p&#62;		&#38;lt;numbers start=&#34;[-#0-9]&#34; content=&#34;[#0-9a-f.x]&#34; /&#38;gt;&#60;/p&#62;
&#60;p&#62;		&#38;lt;use-styles&#38;gt;&#60;br /&#62;
			&#38;lt;style name=&#34;Default&#34; key=&#34;32&#34; fore=&#34;000000&#34; bold=&#34;false&#34; /&#38;gt;&#60;br /&#62;
			&#38;lt;style name=&#34;Line Comment&#34; key=&#34;1&#34; class=&#34;comment&#34; fore=&#34;007f00&#34; bold=&#34;false&#34; /&#38;gt;&#60;br /&#62;
			&#38;lt;style name=&#34;Keywords&#34; key=&#34;5&#34; class=&#34;keyword&#34; fore=&#34;00008b&#34; bold=&#34;true&#34; /&#38;gt;&#60;br /&#62;
			&#38;lt;style name=&#34;String&#34; key=&#34;10&#34; class=&#34;string&#34; fore=&#34;800080&#34; bold=&#34;false&#34; /&#38;gt;&#60;br /&#62;
			&#38;lt;style name=&#34;String 2&#34; key=&#34;11&#34; class=&#34;string&#34; fore=&#34;800080&#34; bold=&#34;false&#34; /&#38;gt;&#60;br /&#62;
			&#38;lt;style name=&#34;Number&#34; key=&#34;4&#34; class=&#34;number&#34; fore=&#34;800080&#34; bold=&#34;false&#34; /&#38;gt;&#60;br /&#62;
			&#38;lt;style name=&#34;Identifier&#34; key=&#34;3&#34; fore=&#34;000000&#34; bold=&#34;false&#34; /&#38;gt;&#60;br /&#62;
		&#38;lt;/use-styles&#38;gt;&#60;/p&#62;
&#60;p&#62;		&#38;lt;use-keywords&#38;gt;&#60;br /&#62;
			&#38;lt;keyword key=&#34;0&#34; name=&#34;Keywords&#34; class=&#34;euphoria_keywords&#34; /&#38;gt;&#60;br /&#62;
			&#38;lt;keyword key=&#34;1&#34; name=&#34;Keywords&#34; class=&#34;euphoria_datatypes&#34; /&#38;gt;&#60;br /&#62;
		&#38;lt;/use-keywords&#38;gt;&#60;br /&#62;
	&#38;lt;/schemedef&#38;gt;&#60;br /&#62;
&#38;lt;/Scheme&#38;gt;&#60;/p&#62;
&#60;p&#62;Best Regards,&#60;br /&#62;
-- Tapani Talvitie
&#60;/p&#62;</description>
		</item>
		<item>
                        <title>D scheme / making portable (bcat)</title>
			<link>http://pnotepad.org/forums/topic/139#post-510</link>
			<pubDate>Sat, 11 Nov 2006 02:54:07 +0000</pubDate>
			<dc:creator>bcat</dc:creator>
			<guid isPermaLink="false">510@http://pnotepad.org/forums/</guid>
			<description>&#60;p&#62;Hi simon. I just wanted to let you know that there are a couple problems with the D scheme in 2.0.7.610.&#60;/p&#62;
&#60;p&#62;1) The .d extension isn't associated with the D scheme, so D files come up as plain text by default.&#60;/p&#62;
&#60;p&#62;2) The keyword list is incorrect. Here's an updated version from the language spec:&#60;/p&#62;
&#60;p&#62;abstract alias align asm assert auto body bool break byte case cast catch cdouble cent cfloat char class const continue creal dchar debug default delegate delete deprecated do double else enum export extern false final finally float for foreach foreach_reverse function goto idouble if ifloat import in inout int interface invariant ireal is lazy long mixin module new null out override package pragma private protected public real return scope short static struct super switch synchronized template this throw true try typedef typeid typeof ubyte ucent uint ulong union unittest ushort version void volatile wchar while with&#60;/p&#62;
&#60;p&#62;3) The line/stream/box comment menu items don't work. Line comments should start with &#60;code&#62;//&#60;/code&#62;. Stream comments should be within &#60;code&#62;/* ... */&#60;/code&#62;. What are box comments?&#60;/p&#62;
&#60;p&#62;4) &#60;code&#62;/+ ... +/&#60;/code&#62; style nested comments are not supported at all.
&#60;/p&#62;</description>
		</item>
		<item>
                        <title>Question about auto-(complete&#124;closing) (jp)</title>
			<link>http://pnotepad.org/forums/topic/46#post-180</link>
			<pubDate>Thu, 13 Apr 2006 06:16:07 +0000</pubDate>
			<dc:creator>jp</dc:creator>
			<guid isPermaLink="false">180@http://pnotepad.org/forums/</guid>
			<description>&#60;p&#62;Hello, I've just found this piece of quality software and it's just what I've been looking for, except for one little feature. This might have been already implemented (at least the lexer has the required functionality afaik), but I was unable to find any solution for this with a quick look-around; is there a way to enable a auto-(complete&#124;closing) of tags, brackets and such? As in, if I'd type in a &#38;lt;span class=&#34;foo&#34;&#38;gt;, after I've input the closing bracket (&#38;gt;), the pn would automatically insert the closing tag &#38;lt;/span&#38;gt; after the cursor? You know what I'm talking about don't you?&#60;/p&#62;
&#60;p&#62;Sorry if my explanation is a bit odd but I didn't figure out any better way to express myself after a 14h workday. :) The feature I'm talking is like those text clips you have in editor expect that the functionality is automated. I'm not talking about code-completion a lá VS or any other bloat IDEs like with method-dropdowns or such.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>

