Regenerate nvim config
This commit is contained in:
@ -0,0 +1,2 @@
|
||||
#define FOO(X,Y) X + Y
|
||||
// ^ @cuda
|
||||
@ -0,0 +1,6 @@
|
||||
FROM foo
|
||||
RUN bar
|
||||
# ^ @bash
|
||||
RUN \
|
||||
baz
|
||||
# ^ @bash
|
||||
@ -0,0 +1,9 @@
|
||||
html`<p></p>`;
|
||||
// ^ @html
|
||||
html(`<p></p>`);
|
||||
// ^ @html
|
||||
svg`<p></p>`;
|
||||
// ^ @html
|
||||
svg(`<p></p>`);
|
||||
// ^ @html
|
||||
|
||||
@ -0,0 +1,55 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title></title>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link href="css/style.css" rel="stylesheet">
|
||||
<style> footer{ } </style>
|
||||
<!-- ^ @css -->
|
||||
<style title="Test Style without type attribute"> footer{ } </style>
|
||||
<!-- ^ @css -->
|
||||
<style type="text/css" title="test style with defined type attribute"> footer{ } </style>
|
||||
<!-- ^ @css -->
|
||||
</head>
|
||||
<body>
|
||||
<script> const x = 1 </script>
|
||||
<!-- ^ @javascript -->
|
||||
<script defer> const x = 1 </script>
|
||||
<!-- ^ @javascript -->
|
||||
<script async defer> const x = 1 </script>
|
||||
<!-- ^ @javascript -->
|
||||
<script type="text/javascript"> const x = 1 </script>
|
||||
<!-- ^ @javascript -->
|
||||
<script type="text/ecmascript"> const x = 1 </script>
|
||||
<!-- ^ @javascript -->
|
||||
<script type="application/ecmascript"> const x = 1 </script>
|
||||
<!-- ^ @javascript -->
|
||||
<script type="application/javascript"> const x = 1 </script>
|
||||
<!-- ^ @javascript -->
|
||||
<script type="module"> import { foo } from "bar" </script>
|
||||
<!-- ^ @javascript -->
|
||||
<script defer type="text/javascript"> const x = 1 </script>
|
||||
<!-- ^ @javascript -->
|
||||
<script type="text/markdown">## Hello *World*!</script>
|
||||
<!-- ^ @markdown -->
|
||||
<script type="application/graphql">query OK { dokey }</script>
|
||||
<!-- ^ @graphql -->
|
||||
<script type="application/typescript">type A = number;</script>
|
||||
<!-- ^ @typescript -->
|
||||
<script type="application/json">{ "true": false }</script>
|
||||
<!-- ^ @json -->
|
||||
<script type="importmap">{ "true": false }</script>
|
||||
<!-- ^ @json -->
|
||||
<div style="height: 100%">
|
||||
<!-- ^ @css -->
|
||||
Test div to test css injections for style attributes
|
||||
</div>
|
||||
|
||||
<input pattern="[0-9]+">
|
||||
<!-- ^ @regex -->
|
||||
<input pattern=[0-9]+ type="tel">
|
||||
<!-- ^ @regex -->
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@ -0,0 +1,22 @@
|
||||
<script> import Button from "./Button.svelte"; </script>
|
||||
<!-- ^ @javascript -->
|
||||
<script lang="ts"> const foo: number = 1
|
||||
</script>
|
||||
<!-- ^ @typescript -->
|
||||
<!-- ^ @!javascript -->
|
||||
|
||||
<style> main { font-family: sans-serif; text-align: center; } </style>
|
||||
<!-- ^ @css -->
|
||||
<style lang="scss"> main { &:hover { } } </style>
|
||||
<!-- ^ @scss -->
|
||||
<!-- ^ @!css -->
|
||||
|
||||
<main>
|
||||
<h1>Test file</h1>
|
||||
{#each someItems as someItem}
|
||||
<!-- ^ @javascript -->
|
||||
<div>{someItem}</div>
|
||||
<!-- ^ @javascript -->
|
||||
{/each}
|
||||
<Button />
|
||||
<button on:click={() => foo++}></button>
|
||||
@ -0,0 +1,4 @@
|
||||
<script lang="ts"> const foo: number = "1" </script>
|
||||
<!-- ^ @!javascript -->
|
||||
<style lang="scss"> .bar { &-baz { &.page{ } } } </style>
|
||||
<!-- ^ @!css -->
|
||||
@ -0,0 +1,39 @@
|
||||
<template>
|
||||
<span>{{"Text inside interpolation"}}</span>
|
||||
<!-- ^ @typescript -->
|
||||
|
||||
<template lang="pug"> a(:href="url") some link title in pug: </template>
|
||||
<!-- ^ @pug -->
|
||||
|
||||
<template v-if="'text inside directives'"></template>
|
||||
<!-- ^ @typescript -->
|
||||
</template>
|
||||
<script> const foo = "1" </script>
|
||||
<!-- ^ @javascript -->
|
||||
<script defer> const foo = "1" </script>
|
||||
<!-- ^ @javascript -->
|
||||
<script lang="js">function x(){ return 1;}</script>
|
||||
<!-- ^ @javascript -->
|
||||
<script lang="ts"> const foo: number = "1" </script>
|
||||
<!-- ^ @typescript -->
|
||||
<!-- ^ @!javascript -->
|
||||
<script lang="ts" defer>const foo: number = 1 </script>
|
||||
<!-- ^ @typescript -->
|
||||
<!-- ^ @!javascript -->
|
||||
<script lang="tsx" defer>const foo: number = 1</script>
|
||||
<!-- ^ @tsx -->
|
||||
<!-- ^ @!jsx -->
|
||||
<!-- ^ @!typescript -->
|
||||
<style> .bar { .foo{ } } </style>
|
||||
<!-- ^ @css -->
|
||||
<style scoped> .page.page--news { background: rebeccapurple; } </style>
|
||||
<!-- ^ @css -->
|
||||
<style lang="css"> .bar { justify-content: center; } </style>
|
||||
<!-- ^ @css -->
|
||||
<style lang="scss"> .bar { &-baz { } } </style>
|
||||
<!-- ^ @scss -->
|
||||
<!-- ^ @!css -->
|
||||
<style scoped lang="scss">body{} </style>
|
||||
<!-- ^ @scss -->
|
||||
<!-- ^ @!css -->
|
||||
// const file = files[0];
|
||||
@ -0,0 +1,32 @@
|
||||
name: CI
|
||||
on:
|
||||
push:
|
||||
branches: [master]
|
||||
pull_request:
|
||||
branches: [master]
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: '16'
|
||||
- name: Install dependencies
|
||||
run: npm ci
|
||||
# ^ @bash
|
||||
- name: Run tests
|
||||
run: npm test
|
||||
# ^ @bash
|
||||
- name: Parse Petalisp
|
||||
run: |
|
||||
git submodule init
|
||||
git submodule update
|
||||
if (( $(node_modules/tree-sitter-cli/tree-sitter parse test/Petalisp/**/*.lisp -q | wc -l) > 2 )); then # There are 2 known failures (strings that are not format strings but use ~X syntax)
|
||||
exit 1
|
||||
else
|
||||
echo "Successfully parsed Petalisp"
|
||||
fi
|
||||
# ^ @bash
|
||||
- name: Run tests
|
||||
run: npm test
|
||||
@ -0,0 +1,19 @@
|
||||
groups:
|
||||
- name: Hardware alerts
|
||||
rules:
|
||||
- alert: Node down
|
||||
expr: up{job="node_exporter"} == 0
|
||||
# ^ @promql
|
||||
for: 3m
|
||||
labels:
|
||||
severity: warning
|
||||
annotations:
|
||||
title: Node {{ $labels.instance }} is down
|
||||
description: Failed to scrape {{ $labels.job }} on {{ $labels.instance }} for more than 3 minutes. Node seems down.
|
||||
- alert: Node down
|
||||
expr: |
|
||||
up{job="node_exporter"} == 0
|
||||
# ^ @promql
|
||||
for: 3m
|
||||
labels:
|
||||
severity: warning
|
||||
Reference in New Issue
Block a user