Opened 17 years ago

Closed 16 years ago

#69 closed task (fixed)

support other modes e.g. perl-mode

Reported by: Peter Johansson Owned by: Peter Johansson
Priority: major Milestone: 0.6
Component: core Version: trunk
Keywords: Cc:

Description (last modified by Peter Johansson)

Comments are different for different kinds of files. We need to implement more modes e.g. perl-mode and also a protocol telling which mode to use based on the suffix. As an example *.am should be supported. Ultimately this should be configurable in a configure file.

ref #59

Suffixes to be supported (default):

  • *.ac # comment \n
  • *.am # comment \n
  • *.c cc-mode (present)
  • *.cc cc-mode (present)
  • *.cpp cc-mode (present)
  • *.h cc-mode (present)
  • *.html <!-- comment -->
  • *.java cc-mode
  • *.jar # comment \n
  • *.jsp <%-- comment --%> or <!-- comment -->
  • *.pl # comment \n
  • *.pm # comment \n
  • *.sh # comment \n
  • *.tex % comment \n
  • *.txt comment or empty?
  • *.xml <!-- comment -->
  • *.xsd ???

Change History (14)

comment:1 Changed 17 years ago by Peter Johansson

Description: modified (diff)

comment:2 Changed 17 years ago by Peter Johansson

Milestone: 0.7+0.6

comment:3 Changed 17 years ago by Peter Johansson

Description: modified (diff)

comment:4 Changed 17 years ago by Peter Johansson

Description: modified (diff)

comment:5 Changed 17 years ago by Peter Johansson

Description: modified (diff)

comment:6 Changed 17 years ago by Peter Johansson

(In [214]) refs #69 added parsing for comments starting with '#' and '%', respectively

comment:7 Changed 17 years ago by Peter Johansson

[214] appear to not work, check e.g. configure.ac or Makefile.am. We need a test for this feature.

comment:8 Changed 17 years ago by Peter Johansson

(In [217]) refs #69 fixed so it works for '#' and '%'

comment:9 Changed 17 years ago by Peter Johansson

Owner: changed from Jari Häkkinen to Peter Johansson
Status: newassigned

comment:10 Changed 17 years ago by Peter Johansson

(In [218]) refs #69 added text-mode for parsing. For time being "*.txt", "AUTHORS", "ChangeLog?", "INSTALL", "NEWS", and "README" are parsed in this mode.

comment:11 Changed 17 years ago by Jari Häkkinen

.xsd should be treated as .xml

comment:12 Changed 16 years ago by Peter Johansson

(In [234]) fixes #87 and #95 and #103 and #104 and #80 and #108, and refs #69

comment:13 Changed 16 years ago by Peter Johansson

dnl should be detected as start of comment in autotools files.

comment:14 Changed 16 years ago by Peter Johansson

Resolution: fixed
Status: assignedclosed

(In [261]) fixes #69 see wiki Parsing for details what is supported

Note: See TracTickets for help on using tickets.