Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
TextMate 2 Grammar for ECMAScript
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
Syntaxes
Tests
README.md
info.plist

README.md

Identifier
Literal
Program
SwitchCase
CatchClause

Declaration Function Declaration Variable

Expression Array Expression Assignment Expression Binary Expression Call Expression Conditional Expression Function Expression Logical Expression Member Expression New Expression Object Expression Sequence Expression This Expression Unary Expression Update

Statement Block Statement Break Statement Continue Statement Debugger Statement DoWhile Statement Empty Statement Expression Statement For Statement ForIn Statement If Statement Labeled Statement Return Statement Switch Statement Throw Statement Try Statement While Statement With

ECMA-262 5th edition

7.2 White Space 7.3 Line Terminators 7.4 Comments 7.6 Identifier Names and Identifiers 7.6.1.1 Keywords 7.6.1.2 Future Reserved Words 7.7 Punctuators 7.8.1 Null Literals 7.8.2 Boolean Literals 7.8.3 Numeric Literals 7.8.4 String Literals 11.1 Primary Expressions 11.1.4 Array Initialiser 11.1.5 Object Initialiser 11.10 Binary Bitwise Operators 11.11 Binary Logical Operators 11.12 Conditional Operator 11.13 Assignment Operators 11.14 Comma Operator 11.2 Left-Hand-Side Expressions 11.3 Postfix Expressions 11.4 Unary Operators 11.5 Multiplicative Operators 11.6 Additive Operators 11.7 Bitwise Shift Operators 11.8 Relational Operators 11.9 Equality Operators

12 Statements

12.1 Block 12.10 The swith statement 12.10 The with statement 12.12 Labelled Statements 12.13 The throw statement 12.14 The try statement 12.15 The debugger statement 12.2 Variable Statement 12.3 Empty Statement 12.4 Expression Statement 12.5 If statement 12.6 Iteration Statements 12.7 The continue statement 12.8 The break statement 12.9 The return statement 13 Function Definition

14 Program

Keywords

break case catch continue debugger default delete do else finally for function if in instanceof new return switch this throw try typeof var void while with

\b(switch|new|c(ontinue|a(se|tch))|t(h(is|row)|ypeof|ry)|i(n(stanceof)?|f)|d(o|e(fault|lete|bugger))|else|v(oid|ar)|f(inally|or|unction)|w(hile|ith)|return|break)\b

Future reserved words

class const enum export extends import super

\b(super|c(onst|lass)|import|e(num|x(tends|port)))\b

strict mode

implements interface let package private protected public static yield

\b(static|yield|i(nterface|mplements)|p(ublic|ackage|r(ivate|otected))|let)\b

Punctuators

{ } ( ) [ ] . ; , < > <= >= == != === !== + - * % ++ -- << >> >>> & | ^ ! ~ && || ? : = += -= *= %= <<= >>= >>>= &= |= ^=

Something went wrong with that request. Please try again.