File: changelog.py

package info (click to toggle)
gnat-gps 18-5
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 45,716 kB
  • sloc: ada: 362,679; python: 31,031; xml: 9,597; makefile: 1,030; ansic: 917; sh: 264; java: 17
file content (40 lines) | stat: -rw-r--r-- 1,173 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
"""
This file adds support for editing ChangeLog files.
It provides syntax highlighting in these files, and a
text alias "hdr" which expands to the following line:
    date user_name <user_name@>

You do not need to load this file if you never edit Changelog files
"""

###########################################################################
# No user customization below this line
###########################################################################

import GPS

XML = r"""<?xml version="1.0"?>
<GPS>
  <Language>
    <Name>Changelog</Name>
    <Spec_Suffix>.changelog</Spec_Suffix>
    <Keywords>[0-9]+|</Keywords>
    <Keywords>\(.*\).*:</Keywords>
    <Context>
      <Comment_Start>*</Comment_Start>
      <Comment_End>:</Comment_End>
      <String_Delimiter>&quot;</String_Delimiter>
      <Constant_Character>&apos;</Constant_Character>
      <Can_Indent>True</Can_Indent>
      <Syntax_Highlighting>True</Syntax_Highlighting>
      <Case_Sensitive>False</Case_Sensitive>
    </Context>
  </Language>
  <alias name="hdr">
    <param name="USER" environment="true"/>
    <text>%D  %(USER)  &lt;%(USER)@&gt;</text>
  </alias>
</GPS>
"""

GPS.parse_xml(XML)