After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 540935 - adding actionscript and mxml syntax files
adding actionscript and mxml syntax files
Status: RESOLVED FIXED
Product: gtksourceview
Classification: Platform
Component: Syntax files
2.2.x
Other All
: Normal enhancement
: ---
Assigned To: GTK Sourceview maintainers
GTK Sourceview maintainers
Depends on:
Blocks:
 
 
Reported: 2008-06-30 13:59 UTC by Delfick
Modified: 2013-11-15 18:19 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement


Attachments
actionscript .lang file (60.18 KB, application/xml)
2008-06-30 14:00 UTC, Delfick
Details
mxml .lang file (874 bytes, application/xml)
2008-06-30 14:01 UTC, Delfick
Details
actionscript .lang file (60.06 KB, application/octet-stream)
2008-07-01 04:05 UTC, Delfick
Details

Description Delfick 2008-06-30 13:59:54 UTC
Hello

attached are my attempts at making .lang files for actionscript and mxml
(http://en.wikipedia.org/wiki/ActionScript and http://en.wikipedia.org/wiki/MXML)

(I've attached them to this post, but they can also be found here http://code.google.com/p/flashbsm/source/browse/testing/language-specs/)
Comment 1 Delfick 2008-06-30 14:00:40 UTC
Created attachment 113698 [details]
actionscript .lang file
Comment 2 Delfick 2008-06-30 14:01:05 UTC
Created attachment 113699 [details]
mxml .lang file
Comment 3 Delfick 2008-07-01 04:05:05 UTC
Created attachment 113753 [details]
actionscript .lang file

made some small changes to the .lang file for actionscript....
Comment 4 Delfick 2008-08-15 09:32:55 UTC
I moved the actionscript.lang and mxml.lang file to googlecode a while back and can be found here 

http://code.google.com/p/flashbsm/source/browse/testing/language-specs

That aside, I'm having a slight problem where I can't have comments before the package declaration.

even if all I have for the "as" context is

<context id="as">
<include>
	<context ref="package"/>
</include>
</context>

somehow the comment is still highlighted and anything below it isn't highlighted.

And I can't work out why, if anyone can help, that'd be great.

thnx.
Comment 5 Delfick 2008-08-15 09:36:33 UTC
an example of an .as file would be

//comment
package folder.path
{
	public class test
	{
		//stuff goes here
	}
}
Comment 6 Delfick 2008-08-17 15:32:03 UTC
weirdly it works if I leave atleast two blank lines between the start of the file and the first comment....
Comment 7 Sébastien Wilmet 2013-11-15 18:19:44 UTC
GtkSourceView has syntax files for actionscript and mxml.