Jump To …

common/comments.lua

Adds comment strings. They can be overwritten in language modules.

__M.textadept.editing.comment_string = {
  actionscript = '// ',
  ada = '-- ',
  antlr = '// ',
  adpl = '! ',
  applescript = '-- ',
  asp = '\' ',
  awk = '# ',
  batch = ': ',
  boo = '# ',
  coffeescript = '# ',
  cpp = '// ',
  csharp = '// ',
  dmd = '// ',
  dot = '// ',
  eiffel = '-- ',
  erlang = '% ',
  forth = '|\\ ',
  fortran = '! ',
  gap = '# ',
  gettext = '# ',
  gnuplot = '# ',
  groovy = '// ',
  haskell = '-- ',
  idl = '// ',
  ini = '# ',
  io = '# ',
  java = '// ',
  javascript = '// ',
  lisp = '; ',
  lua = '-- ',
  makefile = '# ',
  matlab = '# ',
  objective_c = '// ',
  pascal = '// ',
  perl = '# ',
  php = '// ',
  pike = '// ',
  postscript = '% ',
  props = '# ',
  python = '# ',
  r = '# ',
  rebol = '; ',
  rexx = '-- ',
  rhtml = ' ',
  ruby = '# ',
  ragel = '# ',
  scheme = '; ',
  bash = '# ',
  sql = '# ',
  tex = '% ',
  tcl = '# ',
  vala = '// ',
  verilog = '// ',
  vb = '\' ',
}