summaryrefslogtreecommitdiffstats
path: root/public/prism/prism-gcode.js
blob: a4112689af9906338bd60889abc9c187854b7a30 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Prism.languages.gcode = {
  comment: /;.*|\B\(.*?\)\B/,
  string: {
    pattern: /"(?:""|[^"])*"/,
    greedy: true,
  },
  keyword: /\b[GM]\d+(?:\.\d+)?\b/,
  property: /\b[A-Z]/,
  checksum: {
    pattern: /(\*)\d+/,
    lookbehind: true,
    alias: 'number',
  },
  // T0:0:0
  punctuation: /[:*]/,
};
/city" title="Website name" /> ); expect(screen.getByTitle('Website name logo')).toBeInTheDocument(); }); it('renders a baseline', () => { render( <Branding photo="http://placeimg.com/640/480" title="Website title" baseline="Website baseline" /> ); expect(screen.getByText('Website baseline')).toBeInTheDocument(); }); it('renders a title wrapped with h1 element', () => { render( <Branding photo="http://placeimg.com/640/480" title="Website title" isHome={true} /> ); expect( screen.getByRole('heading', { level: 1, name: 'Website title' }) ).toBeInTheDocument(); }); it('renders a title with h1 styles', () => { render( <Branding photo="http://placeimg.com/640/480" title="Website title" isHome={false} /> ); expect( screen.queryByRole('heading', { level: 1, name: 'Website title' }) ).not.toBeInTheDocument(); expect(screen.getByText('Website title')).toHaveClass('heading--1'); }); });