Skip to content

Commit

Permalink
updates language syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
fedonman committed Feb 14, 2021
1 parent b3b539c commit a65730a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 37 deletions.
2 changes: 1 addition & 1 deletion dist/qsharp.min.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
hljs.registerLanguage("qsharp",(()=>{"use strict";return e=>{var n={
keyword:["operation","function","is","namespace","open","as","newtype","let","mutable","set","body","adjoint","controlled","self","auto","if","elif","else","return","fail","for","new","use","borrow","repeat","until","fixup","while","within","apply"],
keyword:["operation","function","is","namespace","open","as","newtype","let","mutable","set","body","adjoint","controlled","self","auto","if","elif","else","return","fail","for","in","new","use","borrow","repeat","until","fixup","while","within","apply"],
built_in:["Unit","Int","BigInt","Double","Bool","String","Qubit","Result","Pauli","Range"],
literal:["true","false","Zero","One","PauliI","PauliX","PauliY","PauliZ","Adj","Ctl"]
},a=e.inherit(e.TITLE_MODE,{begin:"[a-zA-Z](\\.?\\w)*"}),i={className:"number",
Expand Down
37 changes: 1 addition & 36 deletions src/languages/qsharp.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ export default function(hljs) {
'return',
'fail',
'for',
'in',
'new',
'use',
'borrow',
Expand All @@ -78,42 +79,6 @@ export default function(hljs) {
'within',
'apply'
];
var CONTEXTUAL_KEYWORDS = [
'add',
'alias',
'and',
'ascending',
'async',
'await',
'by',
'descending',
'equals',
'from',
'get',
'global',
'group',
'init',
'into',
'join',
'let',
'nameof',
'not',
'notnull',
'on',
'or',
'orderby',
'partial',
'remove',
'select',
'set',
'unmanaged',
'value|0',
'var',
'when',
'where',
'with',
'yield'
];

var KEYWORDS = {
keyword: NORMAL_KEYWORDS,
Expand Down

0 comments on commit a65730a

Please # to comment.