Skip to content

armgit / kaneo

Public Imported from GitHub
0

⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.

491 B
Raw Blame
// PHP. The JS twin of php.py.
import { always } from './registry.mjs';

const phpHash = (src, i) => src.slice(i + 1, i + 2) !== '[';   // #[Attr] is not a comment

export const LANGUAGE = {
  name: 'PHP',
  extensions: ['php'],
  menu: [{ label: 'PHP', ext: 'php' }],
  syntax: {
    line: [['//', always], ['#', phpHash]],
    block: [['/*', '*/', false]],
    strings: [['"', '"', true], ["'", "'", true]],
    matchers: [],
    cont: '*',
    docMarkers: [],
    docstrings: [],
  },
};