package it.sieradzki.userscript_parser;

import it.sieradzki.userscript_parser.metadata.ExecuteRules;
import it.sieradzki.userscript_parser.metadata.GrantedApi;
import it.sieradzki.userscript_parser.metadata.RunAt;
import it.sieradzki.userscript_parser.metadata.Version;

import java.net.URL;
import java.util.Set;

/**
 * @see <a href="http://wiki.greasespot.net/Metadata_Block">Metadata Block specification</a>
 */
public class Userscript {

	private String description;

	private URL downloadUrl;

	private ExecuteRules executeRules;

	private GrantedApi grantedApi;

	private URL icon;

	private String name;

	private String namespace;

	private URL updateUrl;

	private Set<URL> require;

	private RunAt runAt;

	private Version version;

	private String code;
}

@@ -437,16 +437,139 @@
 ript %7B%0A%0A
+%09public static final String OPENING_TAG = %22==UserScript==%22;%0A%0A%09public static final String CLOSING_TAG = %22==/UserScript==%22;%0A%0A
 %09private

Add opening and closing tag constants